/system/sepolicy/prebuilts/api/26.0/ |
D | nonplat_sepolicy.cil | 1741 (allow bootanim_26_0 gpu_device_26_0 (chr_file (ioctl read write getattr lock append open))) 1743 (allow bootanim_26_0 oemfs_26_0 (file (ioctl read getattr lock open))) 1744 (allow bootanim_26_0 audio_device_26_0 (dir (ioctl read getattr lock search open))) 1745 (allow bootanim_26_0 audio_device_26_0 (chr_file (ioctl read write getattr lock append open))) 1748 (allow bootanim_26_0 ion_device_26_0 (chr_file (ioctl read write getattr lock append open))) 1751 (allow bootanim_26_0 proc_26_0 (dir (ioctl read getattr lock search open))) 1752 (allow bootanim_26_0 proc_26_0 (file (ioctl read getattr lock open))) 1753 (allow bootanim_26_0 proc_26_0 (lnk_file (ioctl read getattr lock open))) 1754 (allow bootanim_26_0 proc_meminfo_26_0 (file (ioctl read getattr lock open))) 1755 (allow bootanim_26_0 sysfs_26_0 (dir (ioctl read getattr lock search open))) [all …]
|
/system/sepolicy/prebuilts/api/27.0/ |
D | nonplat_sepolicy.cil | 1961 (allow bootanim_27_0 gpu_device_27_0 (chr_file (ioctl read write getattr lock append map open))) 1963 (allow bootanim_27_0 oemfs_27_0 (file (ioctl read getattr lock map open))) 1964 (allow bootanim_27_0 audio_device_27_0 (dir (ioctl read getattr lock search open))) 1965 (allow bootanim_27_0 audio_device_27_0 (chr_file (ioctl read write getattr lock append map open))) 1968 (allow bootanim_27_0 ion_device_27_0 (chr_file (ioctl read write getattr lock append map open))) 1971 (allow bootanim_27_0 proc_27_0 (dir (ioctl read getattr lock search open))) 1972 (allow bootanim_27_0 proc_27_0 (file (ioctl read getattr lock map open))) 1973 (allow bootanim_27_0 proc_27_0 (lnk_file (ioctl read getattr lock map open))) 1974 (allow bootanim_27_0 proc_meminfo_27_0 (file (ioctl read getattr lock map open))) 1975 (allow bootanim_27_0 sysfs_27_0 (dir (ioctl read getattr lock search open))) [all …]
|
/system/sepolicy/prebuilts/api/28.0/ |
D | plat_pub_versioned.cil | 3049 (allow appdomain zygote_exec_28_0 (file (ioctl read getattr lock map execute execute_no_trans open)… 3052 (allow appdomain cgroup_28_0 (file (ioctl read write getattr lock append map open))) 3054 (allow appdomain dalvikcache_data_file_28_0 (file (ioctl read getattr lock map open))) 3055 (allow base_typeattr_43_28_0 rootfs_28_0 (lnk_file (ioctl read getattr lock map open))) 3056 (allow base_typeattr_43_28_0 tmpfs_28_0 (lnk_file (ioctl read getattr lock map open))) 3057 (allow appdomain tmpfs_28_0 (dir (ioctl read getattr lock search open))) 3063 (allow appdomain devpts_28_0 (chr_file (ioctl read write getattr))) 3065 (allow appdomain system_server_28_0 (fifo_file (ioctl read write getattr lock append map open))) 3068 (allow appdomain appdomain (fifo_file (ioctl read write getattr lock append map open))) 3070 (allow base_typeattr_43_28_0 app_data_file_28_0 (dir (ioctl read write create getattr setattr lock … [all …]
|
/system/apex/apexd/ |
D | apexd_loop.cpp | 61 if (ioctl(device_fd.get(), LOOP_CLR_FD) == -1) { in MaybeCloseBad() 110 int ret = ioctl(ctl_fd.get(), LOOP_CTL_ADD, id); in preAllocateLoopDevices() 136 int num = ioctl(ctl_fd.get(), LOOP_CTL_GET_FREE); in createLoopDevice() 167 if (ioctl(device_fd.get(), LOOP_SET_FD, target_fd.get()) == -1) { in createLoopDevice() 176 if (ioctl(device_fd.get(), LOOP_SET_STATUS64, &li) == -1) { in createLoopDevice() 180 if (ioctl(device_fd.get(), BLKFLSBUF, 0) == -1) { in createLoopDevice() 205 if (ioctl(device_fd.get(), LOOP_SET_BLOCK_SIZE, 4096) == -1) { in createLoopDevice() 208 if (ioctl(device_fd.get(), LOOP_SET_DIRECT_IO, 1) == -1) { in createLoopDevice() 232 if (ioctl(fd.get(), LOOP_GET_STATUS64, &li) < 0) { in DestroyLoopDevice() 243 if (ioctl(fd.get(), LOOP_CLR_FD, 0) < 0) { in DestroyLoopDevice()
|
/system/extras/tests/framebuffer/ |
D | refresh.c | 45 if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo) == -1) in main() 49 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) in main() 60 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1) { in main() 66 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) in main() 111 if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo) == -1) in main() 150 ioctl(fd, FBIOPUT_VSCREENINFO, &info); in main() 154 err = ioctl(fd, FBIOPUT_VSCREENINFO, &info); in main()
|
D | fb_test.c | 67 if(ioctl(fd, FBIOGET_VSCREENINFO, &vi) < 0) { in get_framebuffer() 75 if(ioctl(fd, FBIOPUT_VSCREENINFO, &vi) < 0) { in get_framebuffer() 81 if(ioctl(fd, FBIOGET_FSCREENINFO, &fi) < 0) { in get_framebuffer() 119 if(ioctl(gr_fb_fd, FBIOPUT_VSCREENINFO, &vi) < 0) { in set_active_framebuffer() 148 if(ioctl(fd, KDSETMODE, (void*) KD_GRAPHICS)) { in gr_init() 158 ioctl(fd, KDSETMODE, (void*) KD_TEXT); in gr_init() 179 ioctl(gr_vt_fd, KDSETMODE, (void*) KD_TEXT); in gr_exit()
|
/system/sepolicy/public/ |
D | sgdisk.te | 10 allowxperm sgdisk vold_device:blk_file ioctl { HDIO_GETGEO }; 14 # using the BLKGETSIZE ioctl as it is useless for devices over 17 allowxperm sgdisk vold_device:blk_file ioctl { BLKGETSIZE }; 19 allowxperm sgdisk vold_device:blk_file ioctl { BLKRRPART }; 22 allow sgdisk devpts:chr_file { read write ioctl getattr };
|
D | hal_drm.te | 34 # only allow unprivileged socket ioctl commands 36 ioctl { unpriv_sock_ioctls unpriv_tty_ioctls }; 46 # do not allow privileged socket ioctl commands 47 neverallowxperm hal_drm_server domain:{ rawip_socket tcp_socket udp_socket } ioctl priv_sock_ioctls;
|
D | fastbootd.te | 17 allowxperm fastbootd functionfs:file ioctl { FUNCTIONFS_ENDPOINT_DESC }; 35 # Needed for DM_DEV_CREATE ioctl call 54 }:blk_file { w_file_perms getattr ioctl }; 63 allowxperm fastbootd super_block_device_type:blk_file ioctl { BLKIOMIN BLKALIGNOFF }; 69 }:blk_file ioctl { BLKSECDISCARD BLKDISCARD }; 90 allowxperm fastbootd dev_type:blk_file ioctl BLKROSET;
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | sgdisk.te | 10 allowxperm sgdisk vold_device:blk_file ioctl { HDIO_GETGEO }; 14 # using the BLKGETSIZE ioctl as it is useless for devices over 17 allowxperm sgdisk vold_device:blk_file ioctl { BLKGETSIZE }; 19 allowxperm sgdisk vold_device:blk_file ioctl { BLKRRPART }; 22 allow sgdisk devpts:chr_file { read write ioctl getattr };
|
D | hal_drm.te | 34 # only allow unprivileged socket ioctl commands 36 ioctl { unpriv_sock_ioctls unpriv_tty_ioctls }; 46 # do not allow privileged socket ioctl commands 47 neverallowxperm hal_drm_server domain:{ rawip_socket tcp_socket udp_socket } ioctl priv_sock_ioctls;
|
D | fastbootd.te | 17 allowxperm fastbootd functionfs:file ioctl { FUNCTIONFS_ENDPOINT_DESC }; 35 # Needed for DM_DEV_CREATE ioctl call 54 }:blk_file { w_file_perms getattr ioctl }; 63 allowxperm fastbootd super_block_device_type:blk_file ioctl { BLKIOMIN BLKALIGNOFF }; 69 }:blk_file ioctl { BLKSECDISCARD BLKDISCARD }; 90 allowxperm fastbootd dev_type:blk_file ioctl BLKROSET;
|
/system/vold/ |
D | Devmapper.cpp | 82 if (ioctl(fd, DM_DEV_CREATE, io)) { in create() 97 if (ioctl(fd, DM_DEV_SET_GEOMETRY, io)) { in create() 106 if (ioctl(fd, DM_DEV_STATUS, io)) { in create() 137 if (ioctl(fd, DM_TABLE_LOAD, io)) { in create() 147 if (ioctl(fd, DM_DEV_SUSPEND, io)) { in create() 182 if (ioctl(fd, DM_DEV_REMOVE, io)) { in destroy() 223 if (ioctl(fd, DM_LIST_DEVICES, io)) { in destroyAll() 249 if (ioctl(fd, DM_DEV_REMOVE, io2)) { in destroyAll()
|
D | Loop.cpp | 57 int num = ioctl(ctl_fd.get(), LOOP_CTL_GET_FREE); in create() 83 if (ioctl(device_fd.get(), LOOP_SET_FD, target_fd.get()) == -1) { in create() 91 if (ioctl(device_fd.get(), LOOP_SET_STATUS64, &li) == -1) { in create() 108 if (ioctl(device_fd, LOOP_CLR_FD, 0) < 0) { in destroyByDevice() 144 if (ioctl(fd.get(), LOOP_GET_STATUS64, &li) < 0) { in destroyAll() 153 if (ioctl(fd.get(), LOOP_CLR_FD, 0) < 0) { in destroyAll()
|
/system/update_engine/common/ |
D | test_utils.cc | 123 int loop_number = ioctl(control_fd, LOOP_CTL_GET_FREE); in BindToUnusedLoopDevice() 142 if (ioctl(loop_device_fd, LOOP_GET_STATUS64, &device_info) != -1 || in BindToUnusedLoopDevice() 154 TEST_AND_RETURN_FALSE_ERRNO(ioctl(loop_device_fd, LOOP_SET_FD, data_fd) == 0); in BindToUnusedLoopDevice() 166 ioctl(loop_device_fd, LOOP_SET_STATUS64, &device_info) == 0); in BindToUnusedLoopDevice() 170 if (ioctl(loop_device_fd, BLKROSET, &ro) != 0) { in BindToUnusedLoopDevice() 187 int get_stat_err = ioctl(loop_device_fd, LOOP_GET_STATUS64, &device_info); in UnbindLoopDevice() 191 TEST_AND_RETURN_FALSE_ERRNO(ioctl(loop_device_fd, LOOP_CLR_FD) == 0); in UnbindLoopDevice()
|
/system/core/libnetutils/ |
D | ifc_utils.c | 182 r = ioctl(ifc_ctl_sock, SIOCGIFHWADDR, &ifr); in ifc_get_hwaddr() 195 r = ioctl(ifc_ctl_sock, SIOCGIFINDEX, &ifr); in ifc_get_ifindex() 207 if(ioctl(ifc_ctl_sock, SIOCGIFFLAGS, &ifr) < 0) return -1; in ifc_set_flags() 209 return ioctl(ifc_ctl_sock, SIOCSIFFLAGS, &ifr); in ifc_set_flags() 242 ret = ioctl(ifc_ctl_sock, SIOCSIFADDR, &ifr); in ifc_set_addr() 452 return ioctl(ifc_ctl_sock, SIOCSIFHWADDR, &ifr); in ifc_set_hwaddr() 463 ret = ioctl(ifc_ctl_sock, SIOCSIFNETMASK, &ifr); in ifc_set_mask() 478 return ioctl(ifc_ctl_sock, SIOCSIFNETMASK, &ifr); in ifc_set_prefixLength() 488 ret = ioctl(ifc_ctl_sock, SIOCGIFADDR, &ifr); in ifc_get_addr() 504 if(ioctl(ifc_ctl_sock, SIOCGIFADDR, &ifr) < 0) { in ifc_get_info() [all …]
|
/system/extras/sound/ |
D | playwav.c | 56 if(ioctl(afd, AUDIO_GET_CONFIG, &config)) { in pcm_play() 63 if (ioctl(afd, AUDIO_SET_CONFIG, &config)) { in pcm_play() 82 ioctl(afd, AUDIO_START, 0); in pcm_play() 86 if (ioctl(afd, AUDIO_GET_STATS, &stats) == 0) in pcm_play() 232 if (ioctl(afd, AUDIO_GET_CONFIG, &cfg)) { in wav_rec() 239 if (ioctl(afd, AUDIO_SET_CONFIG, &cfg)) { in wav_rec() 244 if (ioctl(afd, AUDIO_GET_CONFIG, &cfg)) { in wav_rec() 256 if (ioctl(afd, AUDIO_START, 0)) { in wav_rec() 317 ioctl(afd, AUDIO_START, 0); in mp3_play()
|
/system/sepolicy/prebuilts/api/26.0/private/ |
D | domain_deprecated.te | 47 } rootfs:dir { open getattr read ioctl lock }; # search granted in domain 70 } rootfs:lnk_file { getattr open ioctl lock }; # read granted in domain 87 } system_file:dir { open read ioctl lock }; # search getattr in domain 146 } cache_file:dir { open read search ioctl lock }; 206 } proc:lnk_file { open ioctl lock }; # getattr read granted in domain 219 } sysfs:dir { open getattr read ioctl lock }; # search granted in domain 245 } sysfs:lnk_file { getattr open ioctl lock }; # read granted in domain 298 } selinuxfs:dir { open getattr read ioctl lock }; # search granted in domain 310 } selinuxfs:file { open read ioctl lock }; # getattr granted in domain
|
D | netutils_wrapper.te | 13 # ip utils need everything but ioctl 14 allow netutils_wrapper self:netlink_route_socket ~ioctl; 15 allow netutils_wrapper self:netlink_xfrm_socket ~ioctl;
|
/system/core/fs_mgr/libdm/ |
D | dm.cpp | 55 if (ioctl(fd_, DM_DEV_CREATE, &io)) { in CreateDevice() 83 if (ioctl(fd_, DM_DEV_REMOVE, &io)) { in DeleteDevice() 104 if (ioctl(fd_, DM_DEV_STATUS, &io) < 0) { in GetState() 136 if (ioctl(fd_, DM_TABLE_LOAD, io)) { in LoadTableAndActivate() 142 if (ioctl(fd_, DM_DEV_SUSPEND, io)) { in LoadTableAndActivate() 176 if (ioctl(fd_, DM_LIST_VERSIONS, io)) { in GetAvailableTargets() 239 if (ioctl(fd_, DM_LIST_DEVICES, io)) { in GetAvailableDevices() 281 if (ioctl(fd_, DM_DEV_STATUS, &io) < 0) { in GetDmDevicePathByName() 312 if (ioctl(fd_, DM_TABLE_STATUS, io) < 0) { in GetTable()
|
/system/core/fs_mgr/liblp/ |
D | partition_opener.cpp | 56 if (ioctl(fd, BLKIOMIN, &device_info->alignment) < 0) { in GetBlockDeviceInfo() 62 if (ioctl(fd, BLKALIGNOFF, &alignment_offset) < 0) { in GetBlockDeviceInfo() 67 if (ioctl(fd, BLKSSZGET, &logical_block_size) < 0) { in GetBlockDeviceInfo()
|
/system/sepolicy/prebuilts/api/27.0/private/ |
D | netutils_wrapper.te | 13 # ip utils need everything but ioctl 14 allow netutils_wrapper self:netlink_route_socket ~ioctl; 15 allow netutils_wrapper self:netlink_xfrm_socket ~ioctl;
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | hal_drm.te | 40 # only allow unprivileged socket ioctl commands 42 ioctl { unpriv_sock_ioctls unpriv_tty_ioctls }; 52 # do not allow privileged socket ioctl commands 53 neverallowxperm hal_drm_server domain:{ rawip_socket tcp_socket udp_socket } ioctl priv_sock_ioctls;
|
/system/core/toolbox/ |
D | getevent.c | 72 res = ioctl(fd, EVIOCGPROP(sizeof(bits)), bits); in print_input_props() 109 res = ioctl(fd, EVIOCGBIT(i, bits_size), bits); in print_possible_events() 120 res2 = ioctl(fd, EVIOCGKEY(res), bits + bits_size); in print_possible_events() 137 res2 = ioctl(fd, EVIOCGLED(res), bits + bits_size); in print_possible_events() 142 res2 = ioctl(fd, EVIOCGSND(res), bits + bits_size); in print_possible_events() 147 res2 = ioctl(fd, EVIOCGSW(bits_size), bits + bits_size); in print_possible_events() 195 if(ioctl(fd, EVIOCGABS(j * 8 + k), &abs) == 0) { in print_possible_events() 331 if(ioctl(fd, EVIOCGVERSION, &version)) { in open_device() 336 if(ioctl(fd, EVIOCGID, &id)) { in open_device() 344 if(ioctl(fd, EVIOCGNAME(sizeof(name) - 1), &name) < 1) { in open_device() [all …]
|
/system/sepolicy/prebuilts/api/27.0/public/ |
D | hal_drm.te | 47 # only allow unprivileged socket ioctl commands 49 ioctl { unpriv_sock_ioctls unpriv_tty_ioctls }; 59 # do not allow privileged socket ioctl commands 60 neverallowxperm hal_drm domain:{ rawip_socket tcp_socket udp_socket } ioctl priv_sock_ioctls;
|