diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-09-05 16:28:58 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-09-05 19:02:12 +0200 |
| commit | eb45aa4244bffd937b4175de5ca1d42c1cf2dbba (patch) | |
| tree | d2d1b8987832303d416fbf1352c028b618ce8516 /sys | |
| parent | 58efb7c6a566c512206af66b2183875e78dd7f65 (diff) | |
prog, sys: move dictionary of special strings to sys
It is target-specific.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/init.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/init.go b/sys/init.go index d0d3de82a..11d279ead 100644 --- a/sys/init.go +++ b/sys/init.go @@ -26,6 +26,7 @@ func init() { "timespec": generateTimespec, "timeval": generateTimespec, }, + StringDictionary: stringDictionary, } prog.RegisterTarget(target) } @@ -41,6 +42,12 @@ const ( var ( mmapSyscall *prog.Syscall clockGettimeSyscall *prog.Syscall + + stringDictionary = []string{"user", "keyring", "trusted", "system", "security", "selinux", + "posix_acl_access", "mime_type", "md5sum", "nodev", "self", + "bdev", "proc", "cgroup", "cpuset", + "lo", "eth0", "eth1", "em0", "em1", "wlan0", "wlan1", "ppp0", "ppp1", + "vboxnet0", "vboxnet1", "vmnet0", "vmnet1", "GPL"} ) // createMmapCall creates a "normal" mmap call that maps [start, start+npages) page range. |
