62 code results in snapcore/snapd

YAML
tests/main/security-device-cgroups/task.yaml
Showing the top four matches Last indexed Nov 3, 2017
9 UDEVADM_PATH/kmsg: /sys/devices/virtual/mem/kmsg
10 DEVICE_ID/kmsg: "c 1:11 rwm"
11 OTHER_DEVICE_NAME/kmsg: uinput
12 OTHER_UDEVADM_PATH/kmsg: /sys/devices/virtual/misc/uinput
13 OTHER_DEVICE_ID/kmsg: "c 10:223 rwm"
Go
interfaces/builtin/camera.go
Showing the top eight matches Last indexed Nov 10, 2017
37 /sys/bus/usb/devices/ r,
38 /sys/devices/pci**/usb*/**/idVendor r,
39 /sys/devices/pci**/usb*/**/idProduct r,
40 /run/udev/data/c81:[0-9]* r, # video4linux (/dev/video*, etc)
41 /sys/class/video4linux/ r,
42 /sys/devices/pci**/usb*/**/video4linux/** r,
Go
interfaces/builtin/raw_usb.go
Showing the top seven matches Last indexed Nov 10, 2017
37 # Allow detection of usb devices. Leaks plugged in USB device info
38 /sys/bus/usb/devices/ r,
39 /sys/devices/pci**/usb[0-9]** r,
40 /sys/devices/platform/soc/*.usb/usb[0-9]** r,
41
42 /run/udev/data/c16[67]:[0-9] r, # ACM USB modems
Go
interfaces/builtin/dcdbas_control.go
Showing the top eight matches Last indexed Jun 29, 2017
42 # entries pertaining to System Management Interrupts (SMI)
43 /sys/devices/platform/dcdbas/smi_data rw,
44 /sys/devices/platform/dcdbas/smi_data_buf_phys_addr rw,
45 /sys/devices/platform/dcdbas/smi_data_buf_size rw,
46 /sys/devices/platform/dcdbas/smi_request rw,
Go
interfaces/builtin/opengl.go
Showing the top eight matches Last indexed Dec 6, 2017
63 unix (send, receive) type=dgram peer=(addr="@nvidia[0-9a-f]*"),
64
65 # eglfs
66 /dev/vchiq rw,
67
68 # /sys/devices
69 /sys/devices/pci[0-9]*/**/config r,
70 /sys/devices/pci[0-9]*/**/revision r,
71 /sys/devices/pci[0-9]*/**/{,subsystem_}device r,
YAML
tests/main/security-device-cgroups-serial-port/task.yaml
Showing the top three matches Last indexed Dec 8, 2017
37 # FIXME: this is, apparently, a layered can of worms. Zyga says he needs to fix it.
38 if [ -e /sys/fs/cgroup/devices/snap.test-snapd-tools.env/devices.list ]; then
39 MATCH -v "c 4:68 rwm" < /sys/fs/cgroup/devices/snap.test-snapd-tools.env/devices.list
40 fi
41
42 echo "================================================="
Go
interfaces/builtin/broadcom_asic_control.go
Showing the top eight matches Last indexed Nov 10, 2017
42 # These are broader than they needs to be, but until we query udev
43 # for specific devices, use a broader glob
44 /sys/devices/pci[0-9]*/**/config r,
45 /sys/devices/pci[0-9]*/**/{,subsystem_}device r,
46 /sys/devices/pci[0-9]*/**/{,subsystem_}vendor r,
47
48 /sys/bus/pci/devices/ r,
Shell
cmd/snap-confine/snappy-app-dev
Showing the top match Last indexed May 24, 2017
16 [ -n "$MAJMIN" ] || { echo "no major/minor given" >&2; exit 0; }
17
18 APPNAME="$( echo "$APPNAME" | tr '_' '.' )"
19 app_dev_cgroup="/sys/fs/cgroup/devices/$APPNAME"
20
21 # check if it's a block or char dev
22 if [ "${DEVPATH#*/block/}" != "$DEVPATH" ]; then
Python
tests/lib/snaps/test-snapd-tuntap/bin/tuntap.py
Showing the top two matches Last indexed Nov 13, 2017
1 #!/usr/bin/python3
2
3 import contextlib
4 import os
5 import fcntl
6 import re
7 import struct
8 import sys
33 # fcntl.ioctl(fd, TUNSETOWNER, 1000)
34
35 return fd
36
37
38 def device_exists(dev: str) -> bool:
39 return os.path.exists("/sys/devices/virtual/net/%s" % dev)
Go
interfaces/builtin/hardware_observe.go
Showing the top five matches Last indexed Oct 30, 2017
37 # used by lscpu and 'lspci -A intel-conf1/intel-conf2'
38 capability sys_rawio,
39
40 # used by lspci
41 capability sys_admin,
42 /etc/modprobe.d/{,*} r,
43 /lib/modprobe.d/{,*} r,
77 @{PROC}/device-tree/{,**} r,
78 /sys/kernel/debug/usb/devices r,
79 @{PROC}/sys/abi/{,*} r,
80 `
81
82 const hardwareObserveConnectedPlugSecComp = `