summaryrefslogtreecommitdiff
path: root/net/dcb
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2011-06-25 16:57:07 +0100
committerJonas ABERG <jonas.aberg@stericsson.com>2011-10-28 11:16:06 +0200
commitfc17abbe85db10f0324951048894cddcf1bdb72d (patch)
tree15c7bb5e9596887ab7c027e6e5527aecc2997623 /net/dcb
parent3ea95d46ec44fd8d2eba9bd065d1203f09158bef (diff)
AppArmor: Fix masking of capabilities in complain mode
commit 25e75dff519bcce2cb35023105e7df51d7b9e691 upstream. AppArmor is masking the capabilities returned by capget against the capabilities mask in the profile. This is wrong, in complain mode the profile has effectively all capabilities, as the profile restrictions are not being enforced, merely tested against to determine if an access is known by the profile. This can result in the wrong behavior of security conscience applications like sshd which examine their capability set, and change their behavior accordingly. In this case because of the masked capability set being returned sshd fails due to DAC checks, even when the profile is in complain mode. Kernels affected: 2.6.36 - 3.0. Signed-off-by: John Johansen <john.johansen@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: Id665e36b12510c35d345329339cb17c793c65456 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35671 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'net/dcb')
0 files changed, 0 insertions, 0 deletions