Skip to content

Commit c150d66

Browse files
committed
Merge tag 'integrity-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity
Pull integrity subsystem updates from Mimi Zohar: "Other than the new gid IMA policy rule support and the RCU locking fix, the couple of remaining changes are minor/trivial (e.g. __ro_after_init, replacing strscpy)" * tag 'integrity-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity: evm: mark evm_fixmode as __ro_after_init ima: Use strscpy instead of strlcpy ima_policy: Remove duplicate 'the' in docs comment ima: add gid support ima: fix uid code style problems ima: fix deadlock when traversing "ima_default_rules".
2 parents 61f90a8 + 32ba540 commit c150d66

File tree

4 files changed

+208
-47
lines changed

4 files changed

+208
-47
lines changed

Documentation/ABI/testing/ima_policy

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ Description:
2222
action: measure | dont_measure | appraise | dont_appraise |
2323
audit | hash | dont_hash
2424
condition:= base | lsm [option]
25-
base: [[func=] [mask=] [fsmagic=] [fsuuid=] [uid=]
26-
[euid=] [fowner=] [fsname=]]
25+
base: [[func=] [mask=] [fsmagic=] [fsuuid=] [fsname=]
26+
[uid=] [euid=] [gid=] [egid=]
27+
[fowner=] [fgroup=]]
2728
lsm: [[subj_user=] [subj_role=] [subj_type=]
2829
[obj_user=] [obj_role=] [obj_type=]]
2930
option: [[appraise_type=]] [template=] [permit_directio]
@@ -40,7 +41,10 @@ Description:
4041
fsuuid:= file system UUID (e.g 8bcbe394-4f13-4144-be8e-5aa9ea2ce2f6)
4142
uid:= decimal value
4243
euid:= decimal value
44+
gid:= decimal value
45+
egid:= decimal value
4346
fowner:= decimal value
47+
fgroup:= decimal value
4448
lsm: are LSM specific
4549
option:
4650
appraise_type:= [imasig] [imasig|modsig]

security/integrity/evm/evm_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static struct xattr_list evm_config_default_xattrnames[] = {
7878

7979
LIST_HEAD(evm_config_xattrnames);
8080

81-
static int evm_fixmode;
81+
static int evm_fixmode __ro_after_init;
8282
static int __init evm_set_fixmode(char *str)
8383
{
8484
if (strncmp(str, "fix", 3) == 0)

security/integrity/ima/ima_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ const char *ima_d_path(const struct path *path, char **pathbuf, char *namebuf)
403403
}
404404

405405
if (!pathname) {
406-
strlcpy(namebuf, path->dentry->d_name.name, NAME_MAX);
406+
strscpy(namebuf, path->dentry->d_name.name, NAME_MAX);
407407
pathname = namebuf;
408408
}
409409

0 commit comments

Comments
 (0)