summaryrefslogtreecommitdiffstats
path: root/src/timedate
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/timedate
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/timedate')
-rw-r--r--src/timedate/timedated.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c
index ad483301ef..ad1d492d6b 100644
--- a/src/timedate/timedated.c
+++ b/src/timedate/timedated.c
@@ -392,7 +392,7 @@ static int context_write_data_local_rtc(Context *c) {
}
}
- r = mac_selinux_init();
+ r = mac_init();
if (r < 0)
return r;