Home
last modified time | relevance | path

Searched refs:sig (Results 1 – 11 of 11) sorted by relevance

/security/apparmor/
Dipc.c136 static inline int map_signal_num(int sig) in map_signal_num() argument
138 if (sig > SIGRTMAX) in map_signal_num()
140 else if (sig >= SIGRTMIN) in map_signal_num()
141 return sig - SIGRTMIN + 128; /* rt sigs mapped to 128 */ in map_signal_num()
142 else if (sig < MAXMAPPED_SIG) in map_signal_num()
143 return sig_map[sig]; in map_signal_num()
226 int aa_may_signal(struct aa_label *sender, struct aa_label *target, int sig) in aa_may_signal() argument
230 aad(&sa)->signal = map_signal_num(sig); in aa_may_signal()
Dlsm.c720 int sig, u32 secid) in apparmor_task_kill() argument
732 error = aa_may_signal(cl, tl, sig); in apparmor_task_kill()
/security/integrity/
Dintegrity.h105 uint8_t sig[0]; /* signature payload */ member
142 int integrity_digsig_verify(const unsigned int id, const char *sig, int siglen,
150 const char *sig, int siglen, in integrity_digsig_verify() argument
163 int asymmetric_verify(struct key *keyring, const char *sig,
166 static inline int asymmetric_verify(struct key *keyring, const char *sig, in asymmetric_verify() argument
Ddigsig.c52 int integrity_digsig_verify(const unsigned int id, const char *sig, int siglen, in integrity_digsig_verify() argument
69 switch (sig[1]) { in integrity_digsig_verify()
72 return digsig_verify(keyring[id], sig + 1, siglen - 1, in integrity_digsig_verify()
75 return asymmetric_verify(keyring[id], sig, siglen, in integrity_digsig_verify()
Ddigsig_asymmetric.c82 int asymmetric_verify(struct key *keyring, const char *sig, in asymmetric_verify() argument
86 struct signature_v2_hdr *hdr = (struct signature_v2_hdr *)sig; in asymmetric_verify()
111 pks.s = hdr->sig; in asymmetric_verify()
/security/integrity/ima/
Dima_appraise.c144 struct signature_v2_hdr *sig; in ima_get_hash_algo() local
153 sig = (typeof(sig))xattr_value; in ima_get_hash_algo()
154 if (sig->version != 2 || xattr_len <= sizeof(*sig)) in ima_get_hash_algo()
156 return sig->hash_algo; in ima_get_hash_algo()
DKconfig78 bool "ima-sig"
86 default "ima-sig" if IMA_SIG_TEMPLATE
/security/apparmor/include/
Dipc.h38 int aa_may_signal(struct aa_label *sender, struct aa_label *target, int sig);
/security/
Dsecurity.c960 struct fown_struct *fown, int sig) in security_file_send_sigiotask() argument
962 return call_int_hook(file_send_sigiotask, 0, tsk, fown, sig); in security_file_send_sigiotask()
1127 int sig, u32 secid) in security_task_kill() argument
1129 return call_int_hook(task_kill, 0, p, info, sig, secid); in security_task_kill()
/security/selinux/
Dhooks.c1710 static inline u32 signal_to_av(int sig) in signal_to_av() argument
1714 switch (sig) { in signal_to_av()
4077 int sig, u32 secid) in selinux_task_kill() argument
4081 if (!sig) in selinux_task_kill()
4084 perm = signal_to_av(sig); in selinux_task_kill()
/security/smack/
Dsmack_lsm.c2240 int sig, u32 secid) in smack_task_kill() argument
2247 if (!sig) in smack_task_kill()