All of lore.kernel.org
 help / color / mirror / Atom feed
* selinux category relabel (puppet)
@ 2015-03-13 13:52 Higgs, Stephen
  2015-03-13 17:40 ` Stephen Smalley
  0 siblings, 1 reply; 16+ messages in thread
From: Higgs, Stephen @ 2015-03-13 13:52 UTC (permalink / raw)
  To: selinux

[-- Attachment #1: Type: text/plain, Size: 977 bytes --]

Hello all,

If there is a more appropriate forum for this question please let me know:

I have a system that uses confined users by default and some files are managed by a puppet server.  When I run (via run_init) the puppet startup script, I get the following avc log:

avc: denied { relabelto } for pid=30707 comm="puppet" name="crl.pem" dev=dm-1 ino=527257 scontext=system_u:system_r:puppet_t:s0 tcontext=system_u:object_r:puppet_var_lib_t:s0:c0.c1023 tclass=file

I added "typeattribute puppet_t can_change_object_identity" and appropriate "allow" statements to the puppet_t type after reading the constraints in the targeted policy. However, it was the category "s0:c0.c1023" that was also preventing puppet from relabeling the crl.pem file.

I was able to fix this by manually relabeling the file to "s0" instead of "s0:c0.c1023". My question is, how *should* I handle this so puppet can handle the relabel of the category?

Stephen Higgs
ICF International

[-- Attachment #2: Type: text/html, Size: 22944 bytes --]

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

end of thread, other threads:[~2015-03-17 15:01 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-13 13:52 selinux category relabel (puppet) Higgs, Stephen
2015-03-13 17:40 ` Stephen Smalley
2015-03-13 17:52   ` Higgs, Stephen
2015-03-13 17:54     ` Stephen Smalley
2015-03-13 17:58       ` Higgs, Stephen
2015-03-13 18:02     ` Dominick Grift
2015-03-13 18:04     ` Stephen Smalley
2015-03-13 21:17       ` Higgs, Stephen
2015-03-13 21:31         ` Dominick Grift
2015-03-16 12:43           ` Miroslav Grepl
2015-03-16 12:55         ` Stephen Smalley
2015-03-16 15:20           ` Higgs, Stephen
2015-03-16 15:55             ` Stephen Smalley
2015-03-16 16:17               ` Higgs, Stephen
2015-03-16 17:09                 ` Dominick Grift
2015-03-17 15:00                   ` Higgs, Stephen

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.