Skip to content

Commit 2d1f67a

Browse files
committed
Switch to new aa-lsm-hook, update copyright
1 parent a67a0bc commit 2d1f67a

40 files changed

+47
-58
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ The two cert handlers will eventually merge to use a full system trust store tha
5656

5757
## Authors
5858

59-
Copyright © 2017-2018 Solus Project
59+
Copyright © 2017-2019 Solus Project
6060

6161
`usysconf` is available under the terms of the `GPL-2.0` license.

src/cli/cli.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/cli/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/cli/triggers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/cli/version.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/context.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/files.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/files.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/hwdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/kernel/apparmor.c

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by
@@ -18,6 +18,7 @@
1818

1919
static const char *apparmor_paths[] = {
2020
"/etc/apparmor.d",
21+
"/var/lib/snapd/apparmor/profiles",
2122
};
2223

2324
/**
@@ -26,30 +27,18 @@ static const char *apparmor_paths[] = {
2627
*/
2728
static UscHandlerStatus usc_handler_apparmor_exec(UscContext *ctx, __usc_unused__ const char *path)
2829
{
29-
char *compile_command[] = {
30-
"/usr/sbin/aa-lsm-hook-compile", NULL, /* Terminator */
31-
};
32-
char *load_command[] = {
33-
"/usr/sbin/aa-lsm-hook-load", NULL, /* Terminator */
30+
char *aa_lsm_command[] = {
31+
"/usr/sbin/aa-lsm-hook", NULL, /* Terminator */
3432
};
3533

36-
usc_context_emit_task_start(ctx, "Compiling AppArmor profiles");
34+
usc_context_emit_task_start(ctx, "Compiling and Reloading AppArmor profiles");
3735
if (usc_context_has_flag(ctx, USC_FLAGS_CHROOTED)) {
3836
usc_context_emit_task_finish(ctx, USC_HANDLER_SKIP);
3937
return USC_HANDLER_SKIP | USC_HANDLER_BREAK;
4038
}
4139

42-
/* Compile */
43-
int ret = usc_exec_command(compile_command);
44-
if (ret != 0) {
45-
usc_context_emit_task_finish(ctx, USC_HANDLER_FAIL);
46-
return USC_HANDLER_FAIL;
47-
}
48-
usc_context_emit_task_finish(ctx, USC_HANDLER_SUCCESS);
49-
50-
/* Load */
51-
usc_context_emit_task_start(ctx, "Reloading AppArmor profiles");
52-
ret = usc_exec_command(load_command);
40+
/* Compile & Reload */
41+
int ret = usc_exec_command(aa_lsm_command);
5342
if (ret != 0) {
5443
usc_context_emit_task_finish(ctx, USC_HANDLER_FAIL);
5544
return USC_HANDLER_FAIL;
@@ -63,7 +52,7 @@ static UscHandlerStatus usc_handler_apparmor_exec(UscContext *ctx, __usc_unused_
6352
const UscHandler usc_handler_apparmor = {
6453
.name = "apparmor",
6554
.description = "Compile AppArmor profiles",
66-
.required_bin = "/usr/sbin/aa-lsm-hook-compile",
55+
.required_bin = "/usr/sbin/aa-lsm-hook",
6756
.exec = usc_handler_apparmor_exec,
6857
.paths = apparmor_paths,
6958
.n_paths = ARRAY_SIZE(apparmor_paths),

src/handlers/kernel/clr-boot-manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/kernel/depmod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/ldconfig.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/linux-driver-management.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/mandb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/mono-certs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/openssh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/qol-assist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/systemd/reexec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/systemd/reload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/systemd/sysusers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/systemd/tmpfiles.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/systemd/vbox-restart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/udev-rules.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/xdg/dconf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/xdg/desktop-files.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/xdg/fonts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/xdg/gconf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/xdg/glib2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/xdg/gtk2_immodules.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/xdg/gtk3_immodules.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/xdg/icon-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/handlers/xdg/mime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/state.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

src/state.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is part of usysconf.
33
*
4-
* Copyright © 2017-2018 Solus Project
4+
* Copyright © 2017-2019 Solus Project
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

0 commit comments

Comments
 (0)