Skip to content

Commit

Permalink
kernel/files: add interface files_mmap_read_usr_files
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Schiffbauer <[email protected]>
  • Loading branch information
mschiff committed Dec 4, 2024
1 parent 030b369 commit ec2e775
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions policy/modules/kernel/files.if
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,24 @@ interface(`files_mmap_read_all_files',`
')
')

########################################
## <summary>
## Read and memory map usr_t files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`files_mmap_read_usr_files',`
gen_require(`
type usr_t;
')

mmap_read_files_pattern($1, usr_t, usr_t)
')

########################################
## <summary>
## Allow shared library text relocations in all files.
Expand Down

0 comments on commit ec2e775

Please sign in to comment.