(filecon "HOME_DIR/\.cache(/.*)?" any (system_u object_r xdg_cache_home_t (systemlow systemlow)))
(filecon "HOME_DIR/\.config(/.*)?" any (system_u object_r xdg_config_home_t (systemlow systemlow)))
(filecon "HOME_DIR/\.local(/.*)?" any (system_u object_r xdg_data_home_t (systemlow systemlow)))
(filecon "/run/user/USER(/.*)?" any (system_u object_r xdg_runtime_home_t (systemlow systemlow)))
(typeattribute xdg_data_home_type)
(typeattributeset xdg_data_home_type (xdg_data_home_t ))
(typeattribute xdg_config_home_type)
(typeattributeset xdg_config_home_type (xdg_config_home_t ))
(typeattribute xdg_cache_home_type)
(typeattributeset xdg_cache_home_type (xdg_cache_home_t ))
(typeattribute xdg_runtime_home_type)
(typeattributeset xdg_runtime_home_type (xdg_runtime_home_t ))
(type xdg_data_home_t)
(roletype object_r xdg_data_home_t)
(type xdg_config_home_t)
(roletype object_r xdg_config_home_t)
(type xdg_cache_home_t)
(roletype object_r xdg_cache_home_t)
(type xdg_runtime_home_t)
(roletype object_r xdg_runtime_home_t)
(type xdg_downloads_home_t)
(roletype object_r xdg_downloads_home_t)
(type xdg_documents_home_t)
(roletype object_r xdg_documents_home_t)
(type xdg_music_home_t)
(roletype object_r xdg_music_home_t)
(type xdg_pictures_home_t)
(roletype object_r xdg_pictures_home_t)
(type xdg_videos_home_t)
(roletype object_r xdg_videos_home_t)
(roleattributeset cil_gen_require system_r)
(typeattributeset cil_gen_require user_home_content_type)
(typeattributeset user_home_content_type (xdg_data_home_t xdg_config_home_t xdg_cache_home_t xdg_runtime_home_t xdg_downloads_home_t xdg_documents_home_t xdg_music_home_t xdg_pictures_home_t xdg_videos_home_t ))
(typeattributeset cil_gen_require user_home_t)
(typeattributeset cil_gen_require file_type)
(typeattributeset file_type (xdg_data_home_t xdg_config_home_t xdg_cache_home_t xdg_runtime_home_t xdg_downloads_home_t xdg_documents_home_t xdg_music_home_t xdg_pictures_home_t xdg_videos_home_t ))
(typeattributeset cil_gen_require non_security_file_type)
(typeattributeset non_security_file_type (xdg_data_home_t xdg_config_home_t xdg_cache_home_t xdg_runtime_home_t xdg_downloads_home_t xdg_documents_home_t xdg_music_home_t xdg_pictures_home_t xdg_videos_home_t ))
(typeattributeset cil_gen_require non_auth_file_type)
(typeattributeset non_auth_file_type (xdg_data_home_t xdg_config_home_t xdg_cache_home_t xdg_runtime_home_t xdg_downloads_home_t xdg_documents_home_t xdg_music_home_t xdg_pictures_home_t xdg_videos_home_t ))
(typeattributeset cil_gen_require polymember)
(typeattributeset polymember (xdg_data_home_t xdg_config_home_t xdg_cache_home_t xdg_runtime_home_t xdg_downloads_home_t xdg_documents_home_t xdg_music_home_t xdg_pictures_home_t xdg_videos_home_t ))
(typeattributeset cil_gen_require ubac_constrained_type)
(typeattributeset ubac_constrained_type (xdg_data_home_t xdg_config_home_t xdg_cache_home_t xdg_runtime_home_t xdg_downloads_home_t xdg_documents_home_t xdg_music_home_t xdg_pictures_home_t xdg_videos_home_t ))
(allow xdg_data_home_t user_home_t (filesystem (associate)))
(allow xdg_config_home_t user_home_t (filesystem (associate)))
(allow xdg_cache_home_t user_home_t (filesystem (associate)))
(allow xdg_runtime_home_t user_home_t (filesystem (associate)))
(allow xdg_downloads_home_t user_home_t (filesystem (associate)))
(allow xdg_documents_home_t user_home_t (filesystem (associate)))
(allow xdg_music_home_t user_home_t (filesystem (associate)))
(allow xdg_pictures_home_t user_home_t (filesystem (associate)))
(allow xdg_videos_home_t user_home_t (filesystem (associate)))
