+##
+## Allow shared library text relocations in tmp files.
@@ -212001,149 +212111,39 @@ index 64ff4d7..eaf2611 100644
+
+########################################
+##
- ## Manage temporary files and directories in /tmp.
- ##
- ##
-@@ -4438,7 +4982,7 @@ interface(`files_rw_generic_tmp_sockets',`
-
- ########################################
- ##
--## Set the attributes of all tmp directories.
-+## Relabel a dir from the type used in /tmp.
- ##
- ##
- ##
-@@ -4446,17 +4990,17 @@ interface(`files_rw_generic_tmp_sockets',`
- ##
- ##
- #
--interface(`files_setattr_all_tmp_dirs',`
-+interface(`files_relabelfrom_tmp_dirs',`
- gen_require(`
-- attribute tmpfile;
-+ type tmp_t;
- ')
-
-- allow $1 tmpfile:dir { search_dir_perms setattr };
-+ relabelfrom_dirs_pattern($1, tmp_t, tmp_t)
- ')
-
- ########################################
- ##
--## List all tmp directories.
-+## Relabel a file from the type used in /tmp.
- ##
- ##
- ##
-@@ -4464,59 +5008,53 @@ interface(`files_setattr_all_tmp_dirs',`
- ##
- ##
- #
--interface(`files_list_all_tmp',`
-+interface(`files_relabelfrom_tmp_files',`
- gen_require(`
-- attribute tmpfile;
-+ type tmp_t;
- ')
-
-- allow $1 tmpfile:dir list_dir_perms;
-+ relabelfrom_files_pattern($1, tmp_t, tmp_t)
- ')
-
- ########################################
- ##
--## Relabel to and from all temporary
--## directory types.
-+## Set the attributes of all tmp directories.
- ##
- ##
- ##
- ## Domain allowed access.
- ##
- ##
--##
- #
--interface(`files_relabel_all_tmp_dirs',`
-+interface(`files_setattr_all_tmp_dirs',`
- gen_require(`
- attribute tmpfile;
-- type var_t;
- ')
-
-- allow $1 var_t:dir search_dir_perms;
-- relabel_dirs_pattern($1, tmpfile, tmpfile)
-+ allow $1 tmpfile:dir { search_dir_perms setattr };
- ')
-
- ########################################
- ##
--## Do not audit attempts to get the attributes
--## of all tmp files.
-+## Allow caller to read inherited tmp files.
- ##
- ##
- ##
--## Domain not to audit.
++## Manage temporary files and directories in /tmp.
++##
++##
++##
+## Domain allowed access.
- ##
- ##
- #
--interface(`files_dontaudit_getattr_all_tmp_files',`
-+interface(`files_read_inherited_tmp_files',`
- gen_require(`
- attribute tmpfile;
- ')
-
-- dontaudit $1 tmpfile:file getattr;
-+ allow $1 tmpfile:file { append read_inherited_file_perms };
- ')
-
- ########################################
- ##
--## Allow attempts to get the attributes
--## of all tmp files.
-+## Allow caller to append inherited tmp files.
- ##
- ##
- ##
-@@ -4524,25 +5062,121 @@ interface(`files_dontaudit_getattr_all_tmp_files',`
- ##
- ##
++##