/kernel/linux/linux-5.10/security/apparmor/ |
H A D | procattr.c | 104 char *hat; in aa_setprocattr_changehat() local 109 hat = split_token_from_name(OP_CHANGE_HAT, args, &token); in aa_setprocattr_changehat() 110 if (IS_ERR(hat)) in aa_setprocattr_changehat() 111 return PTR_ERR(hat); in aa_setprocattr_changehat() 113 if (!hat && !token) { in aa_setprocattr_changehat() 114 AA_ERROR("change_hat: Invalid input, NULL hat and NULL magic"); in aa_setprocattr_changehat() 118 if (hat) { in aa_setprocattr_changehat() 119 /* set up hat name vector, args guaranteed null terminated in aa_setprocattr_changehat() 122 * If there are multiple hat names in the buffer each is in aa_setprocattr_changehat() 126 for (count = 0; (hat < en in aa_setprocattr_changehat() [all...] |
H A D | domain.c | 983 * Returns: label for hat transition OR ERR_PTR. Does NOT return NULL 988 struct aa_profile *root, *hat = NULL; in build_change_hat() local 1002 hat = aa_find_child(root, name); in build_change_hat() 1003 if (!hat) { in build_change_hat() 1006 hat = aa_new_null_profile(profile, true, name, in build_change_hat() 1008 if (!hat) { in build_change_hat() 1018 name, hat ? hat->base.hname : NULL, in build_change_hat() 1019 hat ? &hat in build_change_hat() 1036 struct aa_profile *profile, *root, *hat = NULL; change_hat() local [all...] |
H A D | policy.c | 488 * @hat: true if the null- learning profile is a hat 503 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, bool hat, in aa_new_null_profile() argument 541 if (hat) in aa_new_null_profile()
|
/kernel/linux/linux-6.6/security/apparmor/ |
H A D | procattr.c | 101 char *hat; in aa_setprocattr_changehat() local 106 hat = split_token_from_name(OP_CHANGE_HAT, args, &token); in aa_setprocattr_changehat() 107 if (IS_ERR(hat)) in aa_setprocattr_changehat() 108 return PTR_ERR(hat); in aa_setprocattr_changehat() 110 if (!hat && !token) { in aa_setprocattr_changehat() 111 AA_ERROR("change_hat: Invalid input, NULL hat and NULL magic"); in aa_setprocattr_changehat() 115 if (hat) { in aa_setprocattr_changehat() 116 /* set up hat name vector, args guaranteed null terminated in aa_setprocattr_changehat() 119 * If there are multiple hat names in the buffer each is in aa_setprocattr_changehat() 123 for (count = 0; (hat < en in aa_setprocattr_changehat() [all...] |
H A D | domain.c | 1007 * Returns: label for hat transition OR ERR_PTR. Does NOT return NULL 1013 struct aa_profile *root, *hat = NULL; in build_change_hat() local 1027 hat = aa_find_child(root, name); in build_change_hat() 1028 if (!hat) { in build_change_hat() 1031 hat = aa_new_learning_profile(profile, true, name, in build_change_hat() 1033 if (!hat) { in build_change_hat() 1044 name, hat ? hat->base.hname : NULL, in build_change_hat() 1045 hat ? &hat in build_change_hat() 1063 struct aa_profile *profile, *root, *hat = NULL; change_hat() local [all...] |
H A D | policy.c | 623 * @hat: true if the null- learning profile is a hat 638 struct aa_profile *aa_new_learning_profile(struct aa_profile *parent, bool hat, in aa_new_learning_profile() argument 674 if (hat) in aa_new_learning_profile()
|
/kernel/linux/linux-5.10/drivers/input/joystick/ |
H A D | sidewinder.c | 287 int hat, i, j; in sw_parse() local 294 if (sw_check(GB(0,64)) || (hat = (GB(6,1) << 3) | GB(60,3)) > 8) in sw_parse() 304 input_report_abs(dev, ABS_HAT0X, sw_hat_to_axis[hat].x); in sw_parse() 305 input_report_abs(dev, ABS_HAT0Y, sw_hat_to_axis[hat].y); in sw_parse() 338 if (!sw_parity(GB(0,48)) || (hat = GB(42,4)) > 8) in sw_parse() 347 input_report_abs(dev, ABS_HAT0X, sw_hat_to_axis[hat].x); in sw_parse() 348 input_report_abs(dev, ABS_HAT0Y, sw_hat_to_axis[hat].y); in sw_parse() 359 if (!sw_parity(GB(0,43)) || (hat = GB(28,4)) > 8) in sw_parse() 367 input_report_abs(dev, ABS_HAT0X, sw_hat_to_axis[hat].x); in sw_parse() 368 input_report_abs(dev, ABS_HAT0Y, sw_hat_to_axis[hat] in sw_parse() [all...] |
H A D | guillemot.c | 46 int hat; member 122 if (guillemot->type->hat) { in guillemot_poll() 227 if (guillemot->type->hat) { in guillemot_connect()
|
/kernel/linux/linux-6.6/drivers/input/joystick/ |
H A D | sidewinder.c | 284 int hat, i, j; in sw_parse() local 291 if (sw_check(GB(0,64)) || (hat = (GB(6,1) << 3) | GB(60,3)) > 8) in sw_parse() 301 input_report_abs(dev, ABS_HAT0X, sw_hat_to_axis[hat].x); in sw_parse() 302 input_report_abs(dev, ABS_HAT0Y, sw_hat_to_axis[hat].y); in sw_parse() 335 if (!sw_parity(GB(0,48)) || (hat = GB(42,4)) > 8) in sw_parse() 344 input_report_abs(dev, ABS_HAT0X, sw_hat_to_axis[hat].x); in sw_parse() 345 input_report_abs(dev, ABS_HAT0Y, sw_hat_to_axis[hat].y); in sw_parse() 356 if (!sw_parity(GB(0,43)) || (hat = GB(28,4)) > 8) in sw_parse() 364 input_report_abs(dev, ABS_HAT0X, sw_hat_to_axis[hat].x); in sw_parse() 365 input_report_abs(dev, ABS_HAT0Y, sw_hat_to_axis[hat] in sw_parse() [all...] |
H A D | guillemot.c | 43 int hat; member 119 if (guillemot->type->hat) { in guillemot_poll() 224 if (guillemot->type->hat) { in guillemot_connect()
|
/kernel/linux/linux-5.10/security/apparmor/include/ |
H A D | policy.h | 180 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, bool hat,
|
/kernel/linux/linux-6.6/security/apparmor/include/ |
H A D | policy.h | 239 struct aa_profile *aa_new_learning_profile(struct aa_profile *parent, bool hat,
|