Skip to content

Commit

Permalink
Add list_dir_perms to kerberos_read_keytab
Browse files Browse the repository at this point in the history
In the interface kerberos_read_keytab
is allowed to read krb5_keytab_t files,
but wasn't allowed to read krb5_keytab_t dirs,
which leads to AVC message

Resolves: rhbz#2112729
  • Loading branch information
5umm3r15 authored and zpytela committed Jun 23, 2023
1 parent c364da9 commit 3d4190d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion policy/modules/contrib/kerberos.if
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ interface(`kerberos_read_keytab',`
')

files_search_etc($1)
allow $1 krb5_keytab_t:dir search_dir_perms;
allow $1 krb5_keytab_t:dir list_dir_perms;
allow $1 krb5_keytab_t:file read_file_perms;
')

Expand Down

0 comments on commit 3d4190d

Please sign in to comment.