diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-03-26 18:20:41 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-05-31 13:15:53 +0200 |
commit | a452c807a447121ce4ba100863cdc4fb81cde047 (patch) | |
tree | 7a4f45b84a5dc321514e89bf41d4e2c8ce117e14 /src/systemctl/systemctl-edit.c | |
parent | label: Rename to label-util.h (diff) | |
download | systemd-a452c807a447121ce4ba100863cdc4fb81cde047.tar.xz systemd-a452c807a447121ce4ba100863cdc4fb81cde047.zip |
label: Introduce LabelOps to do pre/post labelling operations
By default, label_ops is initialized with a NULL pointer which translates
to noop labelling operations. In mac_selinux_init() and the new mac_smack_init(),
we initialize label_ops with a MAC specific LabelOps pointer.
We also introduce mac_init() to initialize any configured MACs and replace all
usages of mac_selinux_init() with mac_init().
Diffstat (limited to 'src/systemctl/systemctl-edit.c')
-rw-r--r-- | src/systemctl/systemctl-edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl-edit.c b/src/systemctl/systemctl-edit.c index 561b01a67a..aff823d773 100644 --- a/src/systemctl/systemctl-edit.c +++ b/src/systemctl/systemctl-edit.c @@ -333,7 +333,7 @@ int verb_edit(int argc, char *argv[], void *userdata) { if (r < 0) return r; - r = mac_selinux_init(); + r = mac_init(); if (r < 0) return r; |