Skip to contentSkip to conversation

apparmor: Modify mismatched function name

PATCH In review Jiapeng Chong 2 participants 4 messages Jan 21, 2025 – Jan 24, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 apparmor: Modify mismatched function name

No functional modification involved.

security/apparmor/lib.c:93: warning: expecting prototype for aa_mask_to_str(). Prototype was for val_mask_to_str() instead.

---
 security/apparmor/lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/apparmor/lib.c +1 -1
index dd5dcbe5daf7..325f26f39a63 100644
@@ -82,7 +82,7 @@ int aa_parse_debug_params(const char *str)
 }
 
 /**
- * aa_mask_to_str - convert a perm mask to its short string
+ * val_mask_to_str - convert a perm mask to its short string
  * @str: character buffer to store string in (at least 10 characters)
  * @str_size: size of the @str buffer
  * @chrs: NUL-terminated character buffer of permission characters
Signature · 1 line
2.32.0.3.g01195cf9f
#1 lore raw

PATCH 1/2 apparmor: Modify mismatched function name

No functional modification involved.

security/apparmor/file.c:184: warning: expecting prototype for aa_lookup_fperms(). Prototype was for aa_lookup_condperms() instead.

---
 security/apparmor/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/apparmor/file.c +1 -1
index 85f89814af1e..f113eedbc208 100644
@@ -169,7 +169,7 @@ static int path_name(const char *op, const struct cred *subj_cred,
 
 struct aa_perms default_perms = {};
 /**
- * aa_lookup_fperms - convert dfa compressed perms to internal perms
+ * aa_lookup_condperms - convert dfa compressed perms to internal perms
  * @subj_uid: uid to use for subject owner test
  * @rules: the aa_policydb to lookup perms for  (NOT NULL)
  * @state: state in dfa
Signature · 1 line
2.32.0.3.g01195cf9f
maintainer Acked-by on v1 1/2
#2 lore raw
Quoted 7 lines · Jiapeng Chong

No functional modification involved.

security/apparmor/file.c:184: warning: expecting prototype for aa_lookup_fperms(). Prototype was for aa_lookup_condperms() instead.

I have pulled this into my tree

Quoted 17 lines
---
  security/apparmor/file.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
security/apparmor/file.c +1 -1
index 85f89814af1e..f113eedbc208 100644
@@ -169,7 +169,7 @@ static int path_name(const char *op, const struct cred *subj_cred,
 
  struct aa_perms default_perms = {};
  /**
- * aa_lookup_fperms - convert dfa compressed perms to internal perms
+ * aa_lookup_condperms - convert dfa compressed perms to internal perms
   * @subj_uid: uid to use for subject owner test
   * @rules: the aa_policydb to lookup perms for  (NOT NULL)
   * @state: state in dfa
maintainer Acked-by on v1 2/2
#3 lore raw
In reply to Jiapeng Chong
Quoted 7 lines · Jiapeng Chong

No functional modification involved.

security/apparmor/lib.c:93: warning: expecting prototype for aa_mask_to_str(). Prototype was for val_mask_to_str() instead.

I have pulled this into my tree

Quoted 17 lines
---
  security/apparmor/lib.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
security/apparmor/lib.c +1 -1
index dd5dcbe5daf7..325f26f39a63 100644
@@ -82,7 +82,7 @@ int aa_parse_debug_params(const char *str)
  }
 
  /**
- * aa_mask_to_str - convert a perm mask to its short string
+ * val_mask_to_str - convert a perm mask to its short string
   * @str: character buffer to store string in (at least 10 characters)
   * @str_size: size of the @str buffer
   * @chrs: NUL-terminated character buffer of permission characters