All of lore.kernel.org
 help / color / mirror / Atom feed
* Permission requirements for semodule?
@ 2014-11-22 16:46 Sven Vermeulen
  2014-11-24 13:39 ` Steve Lawrence
  0 siblings, 1 reply; 2+ messages in thread
From: Sven Vermeulen @ 2014-11-22 16:46 UTC (permalink / raw)
  To: SELinux

Hi all

I'm working with 2.4_rc6 (with the additional patch that Steve sent to
the list on November 19th) and noticed that some of the utilities are
trying to access the HLL files. Currently, our policy disallows that,
but other than that I see no issues.

For instance, when loading a policy module (pp) using "semodule -i
/path/to/module.pp":

type=AVC msg=audit(1416673390.476:215): avc:  denied  { read } for
pid=2729 comm="load_policy"
path="/var/lib/selinux/mcs/active/modules/400/selocal/hll" dev=
"sdb2" ino=6573925 scontext=staff_u:sysadm_r:load_policy_t:s0
tcontext=staff_u:object_r:semanage_var_lib_t:s0 tclass=file

type=AVC msg=audit(1416673390.505:217): avc:  denied  { read } for
pid=2730 comm="setfiles"
path="/var/lib/selinux/mcs/active/modules/400/selocal/hll" dev="sdb2"
ino=6573925 scontext=staff_u:sysadm_r:setfiles_t:s0
tcontext=staff_u:object_r:semanage_var_lib_t:s0 tclass=file

The module is loaded and the changes are active, so I'm inclined to
dontaudit it. But I'd rather ask up front. What are the tools trying
to do? And, is semanage_var_lib_t the right type for the HLL files? I
would expect it to need to be semanage_store_t?

Wkr,
  Sven Vermeulen

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-24 13:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-22 16:46 Permission requirements for semodule? Sven Vermeulen
2014-11-24 13:39 ` Steve Lawrence

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.