fix: enable pam-tmpdir-helper for all distribution.

fix #316
This commit is contained in:
Alexandre Pujol 2024-04-25 12:10:29 +01:00
parent af6d4d698e
commit b3a5fb1ce5
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 1 additions and 0 deletions

View file

@ -1,24 +0,0 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/pam-tmpdir-helper
profile pam-tmpdir-helper @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
capability chown,
@{exec_path} mr,
owner /tmp/user/ rw,
owner /tmp/user/@{uid}/ rw,
/dev/ptmx rw,
include if exists <local/pam-tmpdir-helper>
}