diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2018-04-09 14:36:05 -0400 |
---|---|---|
committer | mdb:android-git <superproject-auto-update@invalid> | 2024-01-10 12:49:15 +0000 |
commit | b1db1e6c64b34e19c2cd1a2f853f27361fc8ad4d (patch) | |
tree | 8532cac0c73dc72a4ad22efd49ee6ab62505a0cd | |
parent | 61570df0c6ac244417b6ed9418d07d7ae3b082bc (diff) | |
download | superproject-b1db1e6c64b34e19c2cd1a2f853f27361fc8ad4d.tar.gz |
UPSTREAM: selinux: fix missing dput() before selinuxfs unmount
Commit 0619f0f5e36f ("selinux: wrap selinuxfs state") triggers a BUG
when SELinux is runtime-disabled (i.e. systemd or equivalent disables
SELinux before initial policy load via /sys/fs/selinux/disable based on
/etc/selinux/config SELINUX=disabled).
This does not manifest if SELinux is disabled via kernel command line
argument or if SELinux is enabled (permissive or enforcing).
Before:
SELinux: Disabled at runtime.
BUG: Dentry 000000006d77e5c7{i=17,n=null} still in use (1) [unmount of selinuxfs selinuxfs]
After:
SELinux: Disabled at runtime.
Bug: 254441685
Fixes: 0619f0f5e36f ("selinux: wrap selinuxfs state")
Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit fd40ffc72e2f74c7db61e400903e7d50a88bc0b0)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: Ia2a69c130d6e40fd3f1e3e24ff7978651fa5377d
m--------- | common | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/common b/common -Subproject 2548317d99b10078881099f821bce9e03fe0c2d +Subproject e2946b863996e749ea7f6b4ad21ff139e173780 |