From: martin@martinorr.name (Martin Orr)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] open permission and directory search
Date: Fri, 24 Oct 2008 18:34:20 +0100 [thread overview]
Message-ID: <4902071C.8090705@martinorr.name> (raw)
Since enabling the open permission, I get lots of denials like:
Oct 21 20:05:53 caligula kernel: type=1400 audit(1224615953.555:5): avc:
denied { open } for pid=3016 comm="hald-addon-acpi" name="var" dev=dm-0
ino=811201 scontext=system_u:system_r:hald_t:s0
tcontext=system_u:object_r:var_t:s0 tclass=dir
So far as I can see, open permission is checked every time a directory is
walked through in a path, so I think it is necessary to add open to
search_dir_perms.
Index: policy/support/obj_perm_sets.spt
===================================================================
--- policy/support/obj_perm_sets.spt.orig
+++ policy/support/obj_perm_sets.spt
@@ -181,7 +181,7 @@
#
define(`getattr_dir_perms',`{ getattr }')
define(`setattr_dir_perms',`{ setattr }')
-define(`search_dir_perms',`{ getattr search }')
+define(`search_dir_perms',`{ getattr search open }')
define(`list_dir_perms',`{ getattr search open read lock ioctl }')
define(`add_entry_dir_perms',`{ getattr search open lock ioctl write add_name }')
define(`del_entry_dir_perms',`{ getattr search open lock ioctl write remove_name }')
Best wishes,
--
Martin Orr
next reply other threads:[~2008-10-24 17:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-24 17:34 Martin Orr [this message]
2008-10-27 12:23 ` [refpolicy] open permission and directory search Christopher J. PeBenito
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4902071C.8090705@martinorr.name \
--to=martin@martinorr.name \
--cc=refpolicy@oss.tresys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.