init: add interface to run init bpf programs
Signed-off-by: Kenton Groombridge <me@concord.sh>
This commit is contained in:
parent
c9eb093f2b
commit
582f390f85
@ -1299,6 +1299,25 @@ interface(`init_dbus_chat',`
|
||||
allow init_t $1:dbus send_msg;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Run init BPF programs.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`init_run_bpf',`
|
||||
gen_require(`
|
||||
type init_t;
|
||||
class bpf prog_run;
|
||||
')
|
||||
|
||||
allow $1 init_t:bpf prog_run;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## read/follow symlinks under /var/lib/systemd/
|
||||
|
Loading…
Reference in New Issue
Block a user