All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] refpolicy interface help
@ 2015-12-13  5:38 Dan
  2015-12-13 13:28 ` Lukas Vrabec
  2015-12-14 14:57 ` Christopher J. PeBenito
  0 siblings, 2 replies; 11+ messages in thread
From: Dan @ 2015-12-13  5:38 UTC (permalink / raw)
  To: refpolicy

Hello all, I am confining the application emacs using the selinux
refpolicy and I seem to be stuck on one little part. I get this one
audit2allow rule that says allow emacs_t user_home_t:file { rename write
create read open };

Now my problem with that rule is that I don't want my application to
write or create files with the user_home_t, so I decided to use an
interface. The interfaces I used are these below:

userdom_user_home_dir_filetrans(emacs_t, emacs_home_t, dir, ".emacs.d")

userdom_user_home_content_filetrans(emacs_t, emacs_home_t, { file dir
lnk_file })



But the problem is when I added these into my policy and when trying to
to an audit2allow on the most recent time and date the denial was still
there for some odd reason and I don't know what interface, macro, or
whatever to use to get rid of the denial allow emacs_t user_home_t:file
{ rename write create read open }; Any help would be much appreciated.

Thanks.

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

end of thread, other threads:[~2015-12-19 10:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-13  5:38 [refpolicy] refpolicy interface help Dan
2015-12-13 13:28 ` Lukas Vrabec
2015-12-13 22:13   ` Dan
2015-12-14 11:55     ` Lukas Vrabec
2015-12-14 14:29       ` Dan
2015-12-14 15:00         ` Lukas Vrabec
2015-12-14 15:17         ` Dominick Grift
2015-12-15  3:20           ` Dan
2015-12-19 10:24             ` Dominick Grift
2015-12-14 14:57 ` Christopher J. PeBenito
2015-12-15  2:56   ` Dan

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.