All of lore.kernel.org
 help / color / mirror / Atom feed
* Cannot write policy to allow { relabelto }
@ 2017-04-17 22:02 Ian Pilcher
  2017-04-18  6:15 ` Dominick Grift
  0 siblings, 1 reply; 7+ messages in thread
From: Ian Pilcher @ 2017-04-17 22:02 UTC (permalink / raw)
  To: selinux

I am having a weird problem writing a policy for a service.  The service
needs to set SELinux file contexts, so I've created a rule to allow
this:

allow acme_nss_t cert_t : file { read write create getattr setattr
relabelfrom relabelto open } ;

Despite this, I am still getting this denial:

avc:  denied  { relabelto } for  pid=3561 comm="update-mod-nss"
name="cert8.db" dev="dm-0" ino=50343845
scontext=system_u:system_r:acme_nss_t:s0
tcontext=unconfined_u:object_r:cert_t:s0 tclass=file

Any ideas?

-- 
========================================================================
Ian Pilcher                                         arequipeno@gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================

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

end of thread, other threads:[~2017-04-18 14:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-17 22:02 Cannot write policy to allow { relabelto } Ian Pilcher
2017-04-18  6:15 ` Dominick Grift
2017-04-18 12:03   ` Ian Pilcher
2017-04-18 12:10     ` Dominick Grift
2017-04-18 12:11       ` Dominick Grift
2017-04-18 13:26       ` Ian Pilcher
2017-04-18 14:07         ` Dominick Grift

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.