-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathsecurity.txt
More file actions
46 lines (34 loc) · 1.53 KB
/
security.txt
File metadata and controls
46 lines (34 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
This document describes the security settings for dtrace, as
implemented for Linux.
dtrace allows a user to access physical memory of the kernel and
other processes, and, as such, should not be allowed in an untrusted
environment. The driver allows various settings to control what a user
can do.
dtrace_proc
dtrace_user
dtrace_kernel
dtrace_super
The /dev/dtrace interface is used to communicate the security settings.
On loading the driver, the system can set up a security policy which
allows non-root users to do specific dtrace actions.
The format of the entries which are loaded into dtrace are:
<uid> NNN perm1 perm2 ...
<gid> NNN perm1 perm2 ...
all NNN perm1 perm2 ...
"<uid>" is a numeric user id, e.g. "98". When specified, commands
invoked by that uid are given the appropriate permissions.
"<gid>" is a numeric group id, e.g. "100". Anyone with the specified
group id can run commands according to the permissions.
Permissions are:
priv_user User can trace their own processes
priv_owner
priv_proc User can read from any process
priv_kernel User can read kernel memory
$ echo uid 200 priv_kernel >/dev/dtrace
$ echo gid 1000 priv_user priv_proc priv_owner >/dev/dtrace
# Totally wide open access.
$ echo all priv_user priv_kernel priv_proc priv_owner >/dev/dtrace
$ cat dtrace.cfg >/dev/dtrace
Lines starting with a '#' are treated as comments. View /proc/dtrace/security
after making changes to ensure the changes are correctly reflected.
Only root can update the security permissions in the dtrace driver.