diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2018-02-03 16:13:09 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2018-02-03 16:13:09 +0100 |
commit | 814af5606460eac001e6c50504206d9e646c4eb9 (patch) | |
tree | f5da615f3a0dba20c8e01d4e5585c58e68950ea2 /pcr/libsepol/0013-libsepol-fix-checkpolicy-dontaudit-compiler-bug.patch | |
parent | 953d89a9f35926dd92c9a752b9e6e367620e9eb4 (diff) | |
download | abslibre-814af5606460eac001e6c50504206d9e646c4eb9.tar.gz abslibre-814af5606460eac001e6c50504206d9e646c4eb9.tar.bz2 abslibre-814af5606460eac001e6c50504206d9e646c4eb9.zip |
pcr/libsepol: updated to 2.7
Diffstat (limited to 'pcr/libsepol/0013-libsepol-fix-checkpolicy-dontaudit-compiler-bug.patch')
-rw-r--r-- | pcr/libsepol/0013-libsepol-fix-checkpolicy-dontaudit-compiler-bug.patch | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/pcr/libsepol/0013-libsepol-fix-checkpolicy-dontaudit-compiler-bug.patch b/pcr/libsepol/0013-libsepol-fix-checkpolicy-dontaudit-compiler-bug.patch deleted file mode 100644 index ff43a5e27..000000000 --- a/pcr/libsepol/0013-libsepol-fix-checkpolicy-dontaudit-compiler-bug.patch +++ /dev/null @@ -1,51 +0,0 @@ -From 00603062c7e9d74a76d62ee9806c9042ec7ad7fa Mon Sep 17 00:00:00 2001 -From: William Roberts <william.c.roberts@intel.com> -Date: Tue, 15 Nov 2016 16:42:23 -0800 -Subject: [PATCH] libsepol: fix checkpolicy dontaudit compiler bug - -The combining logic for dontaudit rules was wrong, causing -a dontaudit A B:C *; rule to be clobbered by a dontaudit A B:C p; -rule. - -This is a reimplementation of: -commit 6201bb5e258e2b5bcc04d502d6fbc05c69d21d71 ("libsepol: -fix checkpolicy dontaudit compiler bug") -that avoids the cumbersome pointer assignments on alloced. - -Reported-by: Nick Kralevich <nnk@google.com> -Signed-off-by: William Roberts <william.c.roberts@intel.com> ---- - libsepol/src/expand.c | 10 ++++++---- - 1 file changed, 6 insertions(+), 4 deletions(-) - -diff --git a/libsepol/src/expand.c b/libsepol/src/expand.c -index 004a02949b98..3e16f586028c 100644 ---- a/libsepol/src/expand.c -+++ b/libsepol/src/expand.c -@@ -1640,6 +1640,11 @@ static avtab_ptr_t find_avtab_node(sepol_handle_t * handle, - - if (!node) { - memset(&avdatum, 0, sizeof avdatum); -+ /* -+ * AUDITDENY, aka DONTAUDIT, are &= assigned, versus |= for -+ * others. Initialize the data accordingly. -+ */ -+ avdatum.data = key->specified == AVTAB_AUDITDENY ? ~0 : 0; - /* this is used to get the node - insertion is actually unique */ - node = avtab_insert_nonunique(avtab, key, &avdatum); - if (!node) { -@@ -1850,10 +1855,7 @@ static int expand_avrule_helper(sepol_handle_t * handle, - */ - avdatump->data &= cur->data; - } else if (specified & AVRULE_DONTAUDIT) { -- if (avdatump->data) -- avdatump->data &= ~cur->data; -- else -- avdatump->data = ~cur->data; -+ avdatump->data &= ~cur->data; - } else if (specified & AVRULE_XPERMS) { - xperms = avdatump->xperms; - if (!xperms) { --- -2.10.2 - |