Skip to content
Commit 3d2195c3 authored by Eric Paris's avatar Eric Paris Committed by James Morris
Browse files

SELinux: do not check open perms if they are not known to policy



When I introduced open perms policy didn't understand them and I
implemented them as a policycap.  When I added the checking of open perm
to truncate I forgot to conditionalize it on the userspace defined
policy capability.  Running an old policy with a new kernel will not
check open on open(2) but will check it on truncate.  Conditionalize the
truncate check the same as the open check.

Signed-off-by: default avatarEric Paris <eparis@redhat.com>
Cc: stable@vger.kernel.org # 3.4.x
Signed-off-by: default avatarJames Morris <james.l.morris@oracle.com>
parent 64919e60
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment