]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - security/apparmor/lib.c
UBUNTU SAUCE: apparmor: fix apparmor mediating locking non-fs, unix sockets
[mirror_ubuntu-bionic-kernel.git] / security / apparmor / lib.c
index 068a9f471f774d57543c6a93d978056070ac9cfb..23f3d16d6b85ec536027bada879ddf6c5f7aa640 100644 (file)
@@ -327,7 +327,7 @@ void aa_compute_perms(struct aa_dfa *dfa, unsigned int state,
        /* for v5 perm mapping in the policydb, the other set is used
         * to extend the general perm set
         */
-       perms->allow |= map_other(dfa_other_allow(dfa, state));
+       perms->allow |= map_other(dfa_other_allow(dfa, state)) | AA_MAY_LOCK;
        perms->audit |= map_other(dfa_other_audit(dfa, state));
        perms->quiet |= map_other(dfa_other_quiet(dfa, state));
 //     perms->xindex = dfa_user_xindex(dfa, state);