Searched refs:has_cap (Results 1 – 2 of 2) sorted by relevance
/linux-4.4.14/drivers/platform/x86/ |
D | acer-wmi.c | 615 static bool has_cap(u32 cap) in has_cap() function 1481 if (!has_cap(ACER_CAP_ACCEL)) in acer_gsensor_event() 1514 if (has_cap(ACER_CAP_WIRELESS)) { in acer_rfkill_update() 1524 if (has_cap(ACER_CAP_BLUETOOTH)) { in acer_rfkill_update() 1530 if (has_cap(ACER_CAP_THREEG) && wmi_has_guid(WMID_GUID3)) { in acer_rfkill_update() 1590 if (has_cap(ACER_CAP_WIRELESS)) { in acer_rfkill_init() 1599 if (has_cap(ACER_CAP_BLUETOOTH)) { in acer_rfkill_init() 1609 if (has_cap(ACER_CAP_THREEG)) { in acer_rfkill_init() 1622 has_cap(ACER_CAP_WIRELESS | ACER_CAP_BLUETOOTH | ACER_CAP_THREEG)) in acer_rfkill_init() 1629 if (has_cap(ACER_CAP_BLUETOOTH)) { in acer_rfkill_init() [all …]
|
/linux-4.4.14/security/ |
D | commoncap.c | 347 bool *has_cap) in bprm_caps_from_vfs_caps() argument 357 *has_cap = true; in bprm_caps_from_vfs_caps() 446 static int get_file_caps(struct linux_binprm *bprm, bool *effective, bool *has_cap) in get_file_caps() argument 469 rc = bprm_caps_from_vfs_caps(&vcaps, bprm, effective, has_cap); in get_file_caps() 493 bool effective, has_cap = false, is_setid; in cap_bprm_set_creds() local 501 ret = get_file_caps(bprm, &effective, &has_cap); in cap_bprm_set_creds() 513 if (has_cap && !uid_eq(new->uid, root_uid) && uid_eq(new->euid, root_uid)) { in cap_bprm_set_creds() 563 if (has_cap || is_setid) in cap_bprm_set_creds()
|