mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
Add uid and uids kernel var placeholders
Add @{uid} and @{uids} variables to allow migrating profiles in advance
while awaiting path mediation implementation, based on current user id,
in kernel side.
PR: https://gitlab.com/apparmor/apparmor/merge_requests/208
(cherry picked from commit cba10db7e7
)
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
committed by
John Johansen
parent
f6b497dd0c
commit
d1dd46d767
@@ -20,3 +20,11 @@
|
||||
|
||||
#A pattern for pids that can appear
|
||||
@{pids}=@{pid}
|
||||
|
||||
# Placeholder for user id until kernel var is implemented to match
|
||||
# current user of the confined application.
|
||||
# Values are 0...4,294,967,295 (32-bit unsigned, 10 digits).
|
||||
@{uid}={[0-9],[1-9][0-9],[1-9][0-9][0-9],[1-9][0-9][0-9][0-9],[1-9][0-9][0-9][0-9][0-9],[1-9][0-9][0-9][0-9][0-9][0-9],[1-9][0-9][0-9][0-9][0-9][0-9][0-9],[1-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9],[1-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9],[1-4][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]}
|
||||
|
||||
#same pattern as @{uid} for now
|
||||
@{uids}=@{uid}
|
||||
|
Reference in New Issue
Block a user