diff options
author | John Johansen <john.johansen@canonical.com> | 2017-04-06 15:55:23 +0200 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2017-04-07 00:58:36 +0200 |
commit | 545de8fe0f1b3b97d6a29a78ccdc3403a8296710 (patch) | |
tree | a45d6a8fc236a5dccf3244234c1a229d8fbacb0a /security/security.c | |
parent | apparmor: fix invalid reference to index variable of iterator line 836 (diff) | |
download | linux-545de8fe0f1b3b97d6a29a78ccdc3403a8296710.tar.xz linux-545de8fe0f1b3b97d6a29a78ccdc3403a8296710.zip |
apparmor: fix parameters so that the permission test is bypassed at boot
Boot parameters are written before apparmor is ready to answer whether
the user is policy_view_capable(). Setting the parameters at boot results
in an oops and failure to boot. Setting the parameters at boot is
obviously allowed so skip the permission check when apparmor is not
initialized.
While we are at it move the more complicated check to last.
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions