diff --git a/refpolicy/policy/modules/system/libraries.te b/refpolicy/policy/modules/system/libraries.te index 3ff19d70..b0ab6c10 100644 --- a/refpolicy/policy/modules/system/libraries.te +++ b/refpolicy/policy/modules/system/libraries.te @@ -28,14 +28,17 @@ files_type(lib_t) # shlib_t is the type of shared objects in the system lib # directories. # -type shlib_t; -files_type(shlib_t) +ifdef(`targeted_policy',` + typealias lib_t alias shlib_t; +',` + type shlib_t; + files_type(shlib_t) +') # # texrel_shlib_t is the type of shared objects in the system lib # directories, which require text relocation. # - ifdef(`targeted_policy',` typealias lib_t alias texrel_shlib_t; ',`