Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jun 2017 16:15:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 219909] Userland dtrace in ports / compiling with poudriere
Message-ID:  <bug-219909-13-m0pNSo1qlb@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-219909-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-219909-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219909

--- Comment #1 from Matthew Seaman <matthew@FreeBSD.org> ---
Fixing permissions.  Choosing group 141 as the next available gid from
/usr/ports/GIDs, create a dtrace group and add the userids used by dtrace-a=
ble
programs to it.  I shall use postgresql96 as the example:

```
# pw group add -n dtrace -g 141 -M postgres
# cat /etc/devfs.rules
[userdtrace=3D10]
add path dtrace/helper mode 0660 group dtrace
# sysrc devfs_system_ruleset=3D"userdtrace"
```
Will result in ownership/permissions like so (may need a reboot):

```
# ls -la /dev/dtrace/
total 1
dr-xr-xr-x   2 root  wheel   512 Jun  3 11:42 ./
dr-xr-xr-x  13 root  wheel   512 Jun  3 11:42 ../
crw-------   1 root  wheel   0x9 Jun  3 11:42 dtmalloc
crw-------   1 root  wheel   0x4 Jun  3 11:42 dtrace
crw-------   1 root  wheel   0x7 Jun  3 11:42 fasttrap
crw-------   1 root  wheel   0x8 Jun  3 11:42 fbt
crw-rw----   1 root  dtrace  0x5 Jun  3 11:42 helper
crw-------   1 root  wheel   0x6 Jun  3 11:42 profile
```
Resulting in:

```
# dtrace -l -m postgres | head -10
   ID   PROVIDER            MODULE                          FUNCTION NAME
69078 postgresql79451          postgres                 CheckPointBuffers
buffer-checkpoint-done
69079 postgresql79451          postgres                 CheckPointBuffers
buffer-checkpoint-start
69080 postgresql79451          postgres                 CheckPointBuffers
buffer-checkpoint-sync-start
69081 postgresql79451          postgres                       FlushBuffer
buffer-flush-done
69082 postgresql79451          postgres                       FlushBuffer
buffer-flush-start
69083 postgresql79451          postgres                 ReadBuffer_common
buffer-read-done
69084 postgresql79451          postgres                 ReadBuffer_common
buffer-read-start
69085 postgresql79451          postgres                 CheckPointBuffers
buffer-sync-done
69086 postgresql79451          postgres                 CheckPointBuffers
buffer-sync-start
```

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219909-13-m0pNSo1qlb>