From 948dd3af445f31e056db6116c09f095933baed5f Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 6 Jun 2020 12:51:52 +0200 Subject: prog: remove target.StringDictionary The linux string dictionary comes from extremely old times when we did not have proper descriptions for almost anything, and the dictionary was a quick hack to guess at least some special strings. Now we have way better descriptions and the dictionary become both unnecessary and probably even harmful. --- sys/linux/init.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'sys/linux') diff --git a/sys/linux/init.go b/sys/linux/init.go index f4f000cfa..6310078d1 100644 --- a/sys/linux/init.go +++ b/sys/linux/init.go @@ -66,15 +66,6 @@ func InitTarget(target *prog.Target) { "usb_device_descriptor_hid": arch.generateUsbHidDeviceDescriptor, } - // TODO(dvyukov): get rid of this, this must be in descriptions. - target.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", - } - target.AuxResources = map[string]bool{ "uid": true, "pid": true, -- cgit mrf-deployment