From 7c2e92ba03eb4711af78f5d2eb53d1793665ba5f Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Mon, 13 Jun 2022 22:09:23 +0100 Subject: [PATCH] feat(profiles): add nologin. --- apparmor.d/profiles-m-r/nologin | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 apparmor.d/profiles-m-r/nologin diff --git a/apparmor.d/profiles-m-r/nologin b/apparmor.d/profiles-m-r/nologin new file mode 100644 index 00000000..252f9054 --- /dev/null +++ b/apparmor.d/profiles-m-r/nologin @@ -0,0 +1,16 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}{s,}bin/nologin +profile nologin @{exec_path} { + include + + @{exec_path} mr, + + include if exists +} \ No newline at end of file