]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
LSM: SafeSetID: Stop releasing uninitialized ruleset
authorMicah Morton <mortonm@chromium.org>
Wed, 25 Sep 2019 21:43:53 +0000 (21:43 +0000)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 27 Sep 2019 13:11:37 +0000 (08:11 -0500)
commit29aeae683353e08ba08f4dc4bb202b4fc35d3661
tree433a357d581ab361436d3c9913b044209aabcf25
parente44fd97d9934171d7d5e83cc261d6746e5c3a02d
LSM: SafeSetID: Stop releasing uninitialized ruleset

BugLink: https://launchpad.net/bugs/1845391
The first time a rule set is configured for SafeSetID, we shouldn't be
trying to release the previously configured ruleset, since there isn't
one. Currently, the pointer that would point to a previously configured
ruleset is uninitialized on first rule set configuration, leading to a
crash when we try to call release_ruleset with that pointer.

Acked-by: Jann Horn <jannh@google.com>
Signed-off-by: Micah Morton <mortonm@chromium.org>
(cherry picked from commit 21ab8580b383f27b7f59b84ac1699cb26d6c3d69)
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: John Johansen <john.johnansen@canonical.com>
Acked-by: Steve Beattie <steve.beattie@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
security/safesetid/securityfs.c