summaryrefslogtreecommitdiffstats
path: root/src/hwdb
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-03-26 18:20:41 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-05-31 13:15:53 +0200
commita452c807a447121ce4ba100863cdc4fb81cde047 (patch)
tree7a4f45b84a5dc321514e89bf41d4e2c8ce117e14 /src/hwdb
parentlabel: Rename to label-util.h (diff)
downloadsystemd-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.c2
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;