mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(profiles): add nologin.
This commit is contained in:
parent
10148786d2
commit
7c2e92ba03
1 changed files with 16 additions and 0 deletions
16
apparmor.d/profiles-m-r/nologin
Normal file
16
apparmor.d/profiles-m-r/nologin
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = /{usr/,}{s,}bin/nologin
|
||||||
|
profile nologin @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
include if exists <local/nologin>
|
||||||
|
}
|
Loading…
Reference in a new issue