Skip to content

Commit

Permalink
sys/linux: modernize selinux descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
dvyukov committed Jul 8, 2018
1 parent eb5690a commit e63a51b
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 55 deletions.
10 changes: 5 additions & 5 deletions executor/syscalls_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#if defined(__i386__) || 0
#define GOARCH "386"
#define SYZ_REVISION "b857e4ee844d1e57b36dc5a1d327da1ab3a7e727"
#define SYZ_REVISION "622fd7dca5deefc11e95fb0b609c0ff9acfdaa26"
#define SYZ_EXECUTOR_USES_FORK_SERVER true
#define SYZ_EXECUTOR_USES_SHMEM true
#define SYZ_PAGE_SIZE 4096
Expand Down Expand Up @@ -2081,7 +2081,7 @@ const call_t syscalls[] = {

#if defined(__x86_64__) || 0
#define GOARCH "amd64"
#define SYZ_REVISION "e4ac1334f12d70f0517b8594cd6aab770f330154"
#define SYZ_REVISION "dd67115f60562407c454b7c2c3a9e0119a809599"
#define SYZ_EXECUTOR_USES_FORK_SERVER true
#define SYZ_EXECUTOR_USES_SHMEM true
#define SYZ_PAGE_SIZE 4096
Expand Down Expand Up @@ -4212,7 +4212,7 @@ const call_t syscalls[] = {

#if defined(__arm__) || 0
#define GOARCH "arm"
#define SYZ_REVISION "5b719f25e76a6afc879f2e6f88d93505a8e0d072"
#define SYZ_REVISION "34eed31ba56f03d9a1473b8307ade80dad7af9cd"
#define SYZ_EXECUTOR_USES_FORK_SERVER true
#define SYZ_EXECUTOR_USES_SHMEM true
#define SYZ_PAGE_SIZE 4096
Expand Down Expand Up @@ -6299,7 +6299,7 @@ const call_t syscalls[] = {

#if defined(__aarch64__) || 0
#define GOARCH "arm64"
#define SYZ_REVISION "c13ba972eee0132c7d310dadc8a75c067cb12f70"
#define SYZ_REVISION "06ba6b91a086878625a0392e3806aac59159893d"
#define SYZ_EXECUTOR_USES_FORK_SERVER true
#define SYZ_EXECUTOR_USES_SHMEM true
#define SYZ_PAGE_SIZE 4096
Expand Down Expand Up @@ -8358,7 +8358,7 @@ const call_t syscalls[] = {

#if defined(__ppc64__) || defined(__PPC64__) || defined(__powerpc64__) || 0
#define GOARCH "ppc64le"
#define SYZ_REVISION "6628f6a634675bb87609b3761d2fbf5eb0d1d6c5"
#define SYZ_REVISION "e8294e0f35033c1790b864b1139cd45bba0d8cfd"
#define SYZ_EXECUTOR_USES_FORK_SERVER true
#define SYZ_EXECUTOR_USES_SHMEM true
#define SYZ_PAGE_SIZE 4096
Expand Down
11 changes: 4 additions & 7 deletions sys/linux/gen/386.go

Large diffs are not rendered by default.

11 changes: 4 additions & 7 deletions sys/linux/gen/amd64.go

Large diffs are not rendered by default.

11 changes: 4 additions & 7 deletions sys/linux/gen/arm.go

Large diffs are not rendered by default.

11 changes: 4 additions & 7 deletions sys/linux/gen/arm64.go

Large diffs are not rendered by default.

11 changes: 4 additions & 7 deletions sys/linux/gen/ppc64le.go

Large diffs are not rendered by default.

27 changes: 12 additions & 15 deletions sys/linux/selinux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,20 @@ selinux_policy {
# This gives us "%s %s %hu" string.
selinux_access_req {
scon stringnoz[selinux_security_context]
sp0 const[0x20, int8]
sp0 const[' ', int8]
tcon stringnoz[selinux_task_context]
sp1 const[0x20, int8]
class0 int8[0x30:0x39]
class1 int8[0x30:0x39]
sp1 const[' ', int8]
class fmt[dec, int16]
z const[0, int8]
} [packed]

selinux_create_objname {
scon stringnoz[selinux_security_context]
sp0 const[0x20, int8]
sp0 const[' ', int8]
tcon stringnoz[selinux_task_context]
sp1 const[0x20, int8]
class0 int8[0x30:0x39]
class1 int8[0x30:0x39]
sp2 const[0x20, int8]
sp1 const[' ', int8]
class fmt[dec, int16]
sp2 const[' ', int8]
objname filename
} [packed]

Expand All @@ -84,18 +82,17 @@ selinux_create_req [

selinux_validatetrans_req {
scon0 stringnoz[selinux_security_context]
sp0 const[0x20, int8]
sp0 const[' ', int8]
scon1 stringnoz[selinux_security_context]
sp1 const[0x20, int8]
class0 int8[0x30:0x39]
class1 int8[0x30:0x39]
sp2 const[0x20, int8]
sp1 const[' ', int8]
class fmt[dec, int16]
sp2 const[' ', int8]
tcon string[selinux_task_context]
} [packed]

selinux_user_req {
scon stringnoz[selinux_security_context]
sp0 const[0x20, int8]
sp0 const[' ', int8]
user string[selinux_user_context]
} [packed]

Expand Down

0 comments on commit e63a51b

Please sign in to comment.