Skip to content

Commit dd7eccb

Browse files
committed
refactor: extract sandbox pixel user UID/GID constants into dedicated package
1 parent 909f2cd commit dd7eccb

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

sandbox/user/user.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Package user defines the unprivileged sandbox user that container file
2+
// operations write as. Files written via the sandbox file APIs are chowned
3+
// to this owner so subsequent exec calls (which also run as this user) can
4+
// read and modify them. Hardcoded to match the convention established by the
5+
// provisioning scripts, which create `pixel` at uid 1000.
6+
package user
7+
8+
const (
9+
UID = 1000
10+
GID = 1000
11+
)

0 commit comments

Comments
 (0)