All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] Interface naming question for a filetrans
@ 2012-07-01  9:29 Sven Vermeulen
  2012-07-02 12:05 ` Christopher J. PeBenito
  0 siblings, 1 reply; 4+ messages in thread
From: Sven Vermeulen @ 2012-07-01  9:29 UTC (permalink / raw)
  To: refpolicy

Hi guys,

Let's say I am in the need for two interfaces.

One would do:
  files_pid_filetrans($1, udev_rules_t, dir, $2)
the other one
  filetrans_pattern($1, udev_var_run_t, udev_rules_t, dir, $2)

I'm a bit in doubt about what to call the interfaces.

I believe the first one would be "udev_pid_filetrans_rules_dirs" as it seems
that all *_pid_filetrans routines I find in the policy are about the
var_run_t-based file transition, but then for the second one we would have
no clear answer.

One way to tackle such cases, as Dominick Grift suggested on the chat, is to
use *_generic_pid_filetrans for all the files_pid_filetrans() interfaces
currently in the policy, but that does mean all interfaces will need to be
updated.

Then udev_generic_pid_filetrans_rules_dirs could be used for the first case,
and udev_pid_filetrans_rules_dirs for the second.

So, what's the take on this?

Wkr,
	Sven Vermeulen

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

end of thread, other threads:[~2012-07-03 13:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-01  9:29 [refpolicy] Interface naming question for a filetrans Sven Vermeulen
2012-07-02 12:05 ` Christopher J. PeBenito
2012-07-02 20:15   ` Sven Vermeulen
2012-07-03 13:55     ` Christopher J. PeBenito

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.