diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-11-08 11:13:20 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-11-10 23:22:15 +0100 |
commit | fa6613fc539cfcfb5b64ac31c8a3e2857a8cad56 (patch) | |
tree | b8c223464aec9746727774959e85aedc4ee5451d /src/core/bpf-devices.h | |
parent | core: constify bpf program arrays (diff) | |
download | systemd-fa6613fc539cfcfb5b64ac31c8a3e2857a8cad56.tar.xz systemd-fa6613fc539cfcfb5b64ac31c8a3e2857a8cad56.zip |
bpf: refactor how we create device major:minor whitelists
No functional change intended except for minor adjustments to error messages.
Diffstat (limited to 'src/core/bpf-devices.h')
-rw-r--r-- | src/core/bpf-devices.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/bpf-devices.h b/src/core/bpf-devices.h index 8d3de3bd94..504b0902c2 100644 --- a/src/core/bpf-devices.h +++ b/src/core/bpf-devices.h @@ -9,9 +9,9 @@ struct BPFProgram; int bpf_devices_supported(void); -int cgroup_bpf_whitelist_device(BPFProgram *p, int type, int major, int minor, const char *acc); -int cgroup_bpf_whitelist_major(BPFProgram *p, int type, int major, const char *acc); +int cgroup_bpf_whitelist_device(BPFProgram *prog, int type, int major, int minor, const char *acc); +int cgroup_bpf_whitelist_major(BPFProgram *prog, int type, int major, const char *acc); int cgroup_bpf_whitelist_class(BPFProgram *prog, int type, const char *acc); int cgroup_init_device_bpf(BPFProgram **ret, CGroupDevicePolicy policy, bool whitelist); -int cgroup_apply_device_bpf(Unit *u, BPFProgram *p, CGroupDevicePolicy policy, bool whitelist); +int cgroup_apply_device_bpf(Unit *u, BPFProgram *prog, CGroupDevicePolicy policy, bool whitelist); |