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/hwdb | |
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/hwdb')
-rw-r--r-- | src/hwdb/hwdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hwdb/hwdb.c b/src/hwdb/hwdb.c index edc5dfc1f5..4287b1f066 100644 --- a/src/hwdb/hwdb.c +++ b/src/hwdb/hwdb.c @@ -124,7 +124,7 @@ static int run(int argc, char *argv[]) { if (r <= 0) return r; - r = mac_selinux_init(); + r = mac_init(); if (r < 0) return r; |