commit | c408c70b0ad93b16c115c2770b4c626e41bbdfef | [log] [tgz] |
---|---|---|
author | James Carter <jwcart2@tycho.nsa.gov> | Mon Mar 20 11:06:29 2017 -0400 |
committer | James Carter <jwcart2@tycho.nsa.gov> | Tue Mar 21 14:22:34 2017 -0400 |
tree | e0fdf32555695834ecfecfcc4f36d94ec361e845 | |
parent | dd11ab6f7f412fc6d20885fedc9fe5b12fccd49c [diff] |
libsepol/cil: Allow hexadecimal numbers in Xen context rules Allow the use of hexadecimal numbers in iomemcon, ioportcon, and pcidevicecon statements. The use of hexadecimal numbers is often the natural choice for these rules. A zero base is now passed to strtol() and strtoull() which will assume base 16 if the string has a prefix of "0x", base 8 if the string starts with "0", and base 10 otherwise. Signed-off-by: James Carter <jwcart2@tycho.nsa.gov>