Changeset 2713

Show
Ignore:
Timestamp:
06/10/08 10:33:18 (6 months ago)
Author:
cpebenito
Message:

trunk: add sepostgresql policy from kaigai kohei.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Changelog

    r2711 r2713  
     1- SE-Postgresql policy from KaiGai Kohei. 
    12- Patch for X.org dbus support from Martin Orr. 
    23- Patch for labeled networking controls in 2.6.25 from Paul Moore. 
  • trunk/policy/modules/kernel/kernel.if

    r2701 r2713  
    25542554######################################## 
    25552555## <summary> 
     2556##      Relabel from unlabeled database objects. 
     2557## </summary> 
     2558## <param name="domain"> 
     2559##      <summary> 
     2560##      Domain allowed access. 
     2561##      </summary> 
     2562## </param> 
     2563# 
     2564interface(`kernel_relabelfrom_unlabeled_database',` 
     2565        gen_require(` 
     2566                type unlabeled_t; 
     2567                class db_database { setattr relabelfrom }; 
     2568                class db_table { setattr relabelfrom }; 
     2569                class db_procedure { setattr relabelfrom }; 
     2570                class db_column { setattr relabelfrom }; 
     2571                class db_tuple { update relabelfrom }; 
     2572                class db_blob { setattr relabelfrom }; 
     2573        ') 
     2574 
     2575        allow $1 unlabeled_t:db_database { setattr relabelfrom }; 
     2576        allow $1 unlabeled_t:db_table { setattr relabelfrom }; 
     2577        allow $1 unlabeled_t:db_procedure { setattr relabelfrom }; 
     2578        allow $1 unlabeled_t:db_column { setattr relabelfrom }; 
     2579        allow $1 unlabeled_t:db_tuple { update relabelfrom }; 
     2580        allow $1 unlabeled_t:db_blob { setattr relabelfrom }; 
     2581') 
     2582 
     2583######################################## 
     2584## <summary> 
    25562585##      Unconfined access to kernel module resources. 
    25572586## </summary> 
  • trunk/policy/modules/kernel/kernel.te

    r2712 r2713  
    11 
    2 policy_module(kernel,1.9.4
     2policy_module(kernel,1.9.5
    33 
    44######################################## 
  • trunk/policy/modules/services/apache.if

    r2466 r2713  
    227227 
    228228        optional_policy(` 
     229                postgresql_unpriv_client(httpd_$1_script_t) 
     230        ') 
     231 
     232        optional_policy(` 
    229233                nscd_socket_use(httpd_$1_script_t) 
    230234        ') 
  • trunk/policy/modules/services/apache.te

    r2668 r2713  
    11 
    2 policy_module(apache,1.9.1
     2policy_module(apache,1.9.2
    33 
    44# 
     
    476476        # Allow httpd to work with postgresql 
    477477        postgresql_stream_connect(httpd_t) 
     478        postgresql_unpriv_client(httpd_t) 
    478479 
    479480        tunable_policy(`httpd_can_network_connect_db',` 
  • trunk/policy/modules/services/postgresql.fc

    r1926 r2713  
    77# /usr 
    88# 
    9 /usr/bin/initdb                       --      gen_context(system_u:object_r:postgresql_exec_t,s0) 
    10 /usr/bin/postgres             --      gen_context(system_u:object_r:postgresql_exec_t,s0) 
     9/usr/bin/initdb(\.sepgsql)?   --      gen_context(system_u:object_r:postgresql_exec_t,s0) 
     10/usr/bin/(se)?postgres                --      gen_context(system_u:object_r:postgresql_exec_t,s0) 
    1111 
    1212/usr/lib/pgsql/test/regres(/.*)?        gen_context(system_u:object_r:postgresql_db_t,s0) 
     
    3131/var/lib/pgsql/pgstartup\.log           gen_context(system_u:object_r:postgresql_log_t,s0) 
    3232 
     33/var/lib/sepgsql(/.*)?                  gen_context(system_u:object_r:postgresql_db_t,s0) 
     34/var/lib/sepgsql/pgstartup\.log --      gen_context(system_u:object_r:postgresql_log_t,s0) 
     35 
    3336/var/log/postgres\.log.*        --      gen_context(system_u:object_r:postgresql_log_t,s0) 
    3437/var/log/postgresql(/.*)?               gen_context(system_u:object_r:postgresql_log_t,s0) 
     38/var/log/sepostgresql\.log.*    --      gen_context(system_u:object_r:postgresql_log_t,s0) 
    3539 
    3640ifdef(`distro_redhat', ` 
  • trunk/policy/modules/services/postgresql.if

    r2531 r2713  
    11## <summary>PostgreSQL relational database</summary> 
     2 
     3####################################### 
     4## <summary> 
     5##      The userdomain template for the SE-PostgreSQL. 
     6## </summary> 
     7## <desc> 
     8##      This template creates a delivered types which are used 
     9##      for given userdomains. 
     10## </desc> 
     11## <param name="userdomain_prefix"> 
     12##      <summary> 
     13##      The prefix of the user domain (e.g., user 
     14##      is the prefix for user_t). 
     15##      </summary> 
     16## </param> 
     17## <param name="user_domain"> 
     18##      <summary> 
     19##      The type of the user domain. 
     20##      </summary> 
     21## </param> 
     22## <param name="user_role"> 
     23##      <summary> 
     24##      The role associated with the user domain. 
     25##      </summary> 
     26## </param> 
     27# 
     28template(`postgresql_userdom_template',` 
     29        gen_require(` 
     30                class db_database all_db_database_perms; 
     31                class db_table all_db_table_perms; 
     32                class db_procedure all_db_procedure_perms; 
     33                class db_column all_db_column_perms; 
     34                class db_tuple all_db_tuple_perms; 
     35                class db_blob all_db_blob_perms; 
     36 
     37                attribute sepgsql_client_type, sepgsql_database_type; 
     38                attribute sepgsql_sysobj_table_type; 
     39 
     40                type sepgsql_trusted_proc_t, sepgsql_trusted_domain_t; 
     41        ') 
     42 
     43        ######################################## 
     44        # 
     45        # Declarations 
     46        # 
     47 
     48        typeattribute $2 sepgsql_client_type; 
     49 
     50        type $1_sepgsql_blob_t; 
     51        postgresql_blob_object($1_sepgsql_blob_t) 
     52 
     53        type $1_sepgsql_proc_t; 
     54        postgresql_procedure_object($1_sepgsql_proc_t) 
     55 
     56        type $1_sepgsql_sysobj_t; 
     57        postgresql_system_table_object($1_sepgsql_sysobj_t) 
     58 
     59        type $1_sepgsql_table_t; 
     60        postgresql_table_object($1_sepgsql_table_t) 
     61 
     62        role $3 types sepgsql_trusted_domain_t; 
     63 
     64        ############################## 
     65        # 
     66        # Client local policy 
     67        # 
     68 
     69        tunable_policy(`sepgsql_enable_users_ddl',` 
     70                allow $2 $1_sepgsql_table_t  : db_table { create drop }; 
     71                type_transition $2 sepgsql_database_type:db_table $1_sepgsql_table_t; 
     72 
     73                allow $2 $1_sepgsql_table_t  : db_column { create drop }; 
     74 
     75                allow $2 $1_sepgsql_sysobj_t : db_tuple { update insert delete }; 
     76                type_transition $2 sepgsql_sysobj_table_type:db_tuple $1_sepgsql_sysobj_t; 
     77        ') 
     78 
     79        allow $2 $1_sepgsql_table_t  : db_table  { getattr setattr use select update insert delete }; 
     80        allow $2 $1_sepgsql_table_t  : db_column { getattr setattr use select update insert }; 
     81        allow $2 $1_sepgsql_table_t  : db_tuple  { use select update insert delete }; 
     82        allow $2 $1_sepgsql_sysobj_t : db_tuple  { use select }; 
     83 
     84        allow $2 $1_sepgsql_proc_t : db_procedure { create drop getattr setattr execute }; 
     85        type_transition $2 sepgsql_database_type:db_procedure $1_sepgsql_proc_t; 
     86 
     87        allow $2 $1_sepgsql_blob_t : db_blob { create drop getattr setattr read write }; 
     88        type_transition $2 sepgsql_database_type:db_blob $1_sepgsql_blob_t; 
     89 
     90        allow $2 sepgsql_trusted_domain_t:process transition; 
     91        type_transition $2 sepgsql_trusted_proc_t:process sepgsql_trusted_domain_t; 
     92') 
     93 
     94######################################## 
     95## <summary> 
     96##     Marks as a SE-PostgreSQL loadable shared library module 
     97## </summary> 
     98## <param name="type"> 
     99##     <summary> 
     100##     Type marked as a database object type. 
     101##     </summary> 
     102## </param> 
     103# 
     104interface(`postgresql_loadable_module',` 
     105        gen_require(` 
     106                attribute sepgsql_module_type; 
     107        ') 
     108 
     109        typeattribute $1 sepgsql_module_type; 
     110') 
     111 
     112######################################## 
     113## <summary> 
     114##     Marks as a SE-PostgreSQL database object type 
     115## </summary> 
     116## <param name="type"> 
     117##     <summary> 
     118##     Type marked as a database object type. 
     119##     </summary> 
     120## </param> 
     121# 
     122interface(`postgresql_database_object',` 
     123        gen_require(` 
     124                attribute sepgsql_database_type; 
     125        ') 
     126 
     127        typeattribute $1 sepgsql_database_type; 
     128') 
     129 
     130######################################## 
     131## <summary> 
     132##     Marks as a SE-PostgreSQL table/column/tuple object type 
     133## </summary> 
     134## <param name="type"> 
     135##     <summary> 
     136##     Type marked as a table/column/tuple object type. 
     137##     </summary> 
     138## </param> 
     139# 
     140interface(`postgresql_table_object',` 
     141        gen_require(` 
     142                attribute sepgsql_table_type; 
     143        ') 
     144 
     145        typeattribute $1 sepgsql_table_type; 
     146') 
     147 
     148######################################## 
     149## <summary> 
     150##     Marks as a SE-PostgreSQL system table/column/tuple object type 
     151## </summary> 
     152## <param name="type"> 
     153##     <summary> 
     154##     Type marked as a table/column/tuple object type. 
     155##     </summary> 
     156## </param> 
     157# 
     158interface(`postgresql_system_table_object',` 
     159        gen_require(` 
     160                attribute sepgsql_table_type; 
     161                attribute sepgsql_sysobj_table_type; 
     162        ') 
     163 
     164        typeattribute $1 sepgsql_table_type; 
     165        typeattribute $1 sepgsql_sysobj_table_type; 
     166') 
     167 
     168######################################## 
     169## <summary> 
     170##     Marks as a SE-PostgreSQL procedure object type 
     171## </summary> 
     172## <param name="type"> 
     173##     <summary> 
     174##     Type marked as a database object type. 
     175##     </summary> 
     176## </param> 
     177# 
     178interface(`postgresql_procedure_object',` 
     179        gen_require(` 
     180                attribute sepgsql_procedure_type; 
     181        ') 
     182 
     183        typeattribute $1 sepgsql_procedure_type; 
     184') 
     185 
     186######################################## 
     187## <summary> 
     188##     Marks as a SE-PostgreSQL binary large object type 
     189## </summary> 
     190## <param name="type"> 
     191##     <summary> 
     192##     Type marked as a database binary large object type. 
     193##     </summary> 
     194## </param> 
     195# 
     196interface(`postgresql_blob_object',` 
     197        gen_require(` 
     198                attribute sepgsql_blob_type; 
     199        ') 
     200 
     201        typeattribute $1 sepgsql_blob_type; 
     202') 
    2203 
    3204######################################## 
     
    121322        allow $1 postgresql_tmp_t:sock_file write; 
    122323') 
     324 
     325######################################## 
     326## <summary> 
     327##      Allow the specified domain unprivileged accesses to unifined database objects 
     328##      managed by SE-PostgreSQL, 
     329## </summary> 
     330## <param name="domain"> 
     331##      <summary> 
     332##      Domain allowed access. 
     333##      </summary> 
     334## </param> 
     335# 
     336interface(`postgresql_unpriv_client',` 
     337        gen_require(` 
     338                class db_table all_db_table_perms; 
     339                class db_procedure all_db_procedure_perms; 
     340                class db_blob all_db_blob_perms; 
     341 
     342                attribute sepgsql_client_type; 
     343                attribute sepgsql_database_type; 
     344 
     345                type sepgsql_table_t, sepgsql_proc_t, sepgsql_blob_t; 
     346 
     347                type sepgsql_trusted_proc_t, sepgsql_trusted_domain_t; 
     348        ') 
     349 
     350        typeattribute $1 sepgsql_client_type; 
     351 
     352        type_transition $1 sepgsql_database_type:db_table sepgsql_table_t; 
     353        type_transition $1 sepgsql_database_type:db_procedure sepgsql_proc_t; 
     354        type_transition $1 sepgsql_database_type:db_blob sepgsql_blob_t; 
     355 
     356        type_transition $1 sepgsql_trusted_proc_t:process sepgsql_trusted_domain_t; 
     357        allow $1 sepgsql_trusted_domain_t:process transition; 
     358') 
     359 
     360######################################## 
     361## <summary> 
     362##      Allow the specified domain unconfined accesses to any database objects 
     363##      managed by SE-PostgreSQL, 
     364## </summary> 
     365## <param name="domain"> 
     366##      <summary> 
     367##      Domain allowed access. 
     368##      </summary> 
     369## </param> 
     370# 
     371interface(`postgresql_unconfined',` 
     372        gen_require(` 
     373                attribute sepgsql_unconfined_type; 
     374        ') 
     375 
     376        typeattribute $1 sepgsql_unconfined_type; 
     377') 
  • trunk/policy/modules/services/postgresql.te

    r2668 r2713  
    11 
    2 policy_module(postgresql,1.5.1) 
     2policy_module(postgresql, 1.5.2) 
     3 
     4gen_require(` 
     5        class db_database all_db_database_perms; 
     6        class db_table all_db_table_perms; 
     7        class db_procedure all_db_procedure_perms; 
     8        class db_column all_db_column_perms; 
     9        class db_tuple all_db_tuple_perms; 
     10        class db_blob all_db_blob_perms; 
     11') 
    312 
    413################################# 
     
    615# Declarations 
    716# 
     17 
     18## <desc> 
     19## <p> 
     20## Allow unprived users to execute DDL statement 
     21## </p> 
     22## </desc> 
     23gen_tunable(sepgsql_enable_users_ddl, true) 
     24 
    825type postgresql_t; 
    926type postgresql_exec_t; 
     
    2744type postgresql_var_run_t; 
    2845files_pid_file(postgresql_var_run_t) 
     46 
     47# database clients attribute 
     48attribute sepgsql_client_type; 
     49attribute sepgsql_unconfined_type; 
     50 
     51# database objects attribute 
     52attribute sepgsql_database_type; 
     53attribute sepgsql_table_type; 
     54attribute sepgsql_sysobj_table_type; 
     55attribute sepgsql_procedure_type; 
     56attribute sepgsql_blob_type; 
     57attribute sepgsql_module_type; 
     58 
     59# database object types 
     60type sepgsql_blob_t; 
     61postgresql_blob_object(sepgsql_blob_t) 
     62 
     63type sepgsql_db_t; 
     64postgresql_database_object(sepgsql_db_t) 
     65 
     66type sepgsql_fixed_table_t; 
     67postgresql_table_object(sepgsql_fixed_table_t) 
     68 
     69type sepgsql_proc_t; 
     70postgresql_procedure_object(sepgsql_proc_t) 
     71 
     72type sepgsql_ro_blob_t; 
     73postgresql_blob_object(sepgsql_ro_blob_t) 
     74 
     75type sepgsql_ro_table_t; 
     76postgresql_table_object(sepgsql_ro_table_t) 
     77 
     78type sepgsql_secret_blob_t; 
     79postgresql_blob_object(sepgsql_secret_blob_t) 
     80 
     81type sepgsql_secret_table_t; 
     82postgresql_table_object(sepgsql_secret_table_t) 
     83 
     84type sepgsql_sysobj_t; 
     85postgresql_system_table_object(sepgsql_sysobj_t) 
     86 
     87type sepgsql_table_t; 
     88postgresql_table_object(sepgsql_table_t) 
     89 
     90type sepgsql_trusted_proc_t; 
     91postgresql_procedure_object(sepgsql_trusted_proc_t) 
     92 
     93# Trusted Procedure Domain 
     94type sepgsql_trusted_domain_t; 
     95domain_type(sepgsql_trusted_domain_t) 
     96postgresql_unconfined(sepgsql_trusted_domain_t) 
     97role system_r types sepgsql_trusted_domain_t; 
    2998 
    3099######################################## 
     
    43112allow postgresql_t self:unix_dgram_socket create_socket_perms; 
    44113allow postgresql_t self:unix_stream_socket create_stream_socket_perms; 
     114allow postgresql_t self:netlink_selinux_socket create_socket_perms; 
     115 
     116allow postgresql_t sepgsql_database_type:db_database *; 
     117type_transition postgresql_t postgresql_t:db_database sepgsql_db_t; 
     118 
     119allow postgresql_t sepgsql_module_type:db_database install_module; 
     120# Database/Loadable module 
     121allow sepgsql_database_type sepgsql_module_type:db_database load_module; 
     122 
     123allow postgresql_t sepgsql_table_type:{ db_table db_column db_tuple } *; 
     124type_transition postgresql_t sepgsql_database_type:db_table sepgsql_sysobj_t; 
     125 
     126allow postgresql_t sepgsql_procedure_type:db_procedure *; 
     127type_transition postgresql_t sepgsql_database_type:db_procedure sepgsql_proc_t; 
     128 
     129allow postgresql_t sepgsql_blob_type:db_blob *; 
     130type_transition postgresql_t sepgsql_database_type:db_blob sepgsql_blob_t; 
    45131 
    46132manage_dirs_pattern(postgresql_t,postgresql_db_t,postgresql_db_t) 
     
    102188fs_search_auto_mountpoints(postgresql_t) 
    103189 
     190selinux_get_enforce_mode(postgresql_t) 
     191selinux_validate_context(postgresql_t) 
     192selinux_compute_access_vector(postgresql_t) 
     193selinux_compute_create_context(postgresql_t) 
     194selinux_compute_relabel_context(postgresql_t) 
     195 
    104196term_use_controlling_term(postgresql_t) 
    105197 
     
    127219miscfiles_read_localization(postgresql_t) 
    128220 
    129 seutil_dontaudit_search_config(postgresql_t) 
     221seutil_libselinux_linked(postgresql_t) 
    130222 
    131223userdom_dontaudit_use_unpriv_user_fds(postgresql_t) 
     
    168260        udev_read_db(postgresql_t) 
    169261') 
     262 
     263######################################## 
     264# 
     265# Rules common to all clients 
     266# 
     267 
     268allow sepgsql_client_type sepgsql_db_t:db_database { getattr access get_param set_param }; 
     269type_transition sepgsql_client_type sepgsql_client_type:db_database sepgsql_db_t; 
     270 
     271allow sepgsql_client_type sepgsql_fixed_table_t:db_table { getattr use select insert }; 
     272allow sepgsql_client_type sepgsql_fixed_table_t:db_column { getattr use select insert }; 
     273allow sepgsql_client_type sepgsql_fixed_table_t:db_tuple { use select insert }; 
     274 
     275allow sepgsql_client_type sepgsql_table_t:db_table { getattr use select update insert delete }; 
     276allow sepgsql_client_type sepgsql_table_t:db_column { getattr use select update insert }; 
     277allow sepgsql_client_type sepgsql_table_t:db_tuple { use select update insert delete }; 
     278 
     279allow sepgsql_client_type sepgsql_ro_table_t:db_table { getattr use select }; 
     280allow sepgsql_client_type sepgsql_ro_table_t:db_column { getattr use select }; 
     281allow sepgsql_client_type sepgsql_ro_table_t:db_tuple { use select }; 
     282 
     283allow sepgsql_client_type sepgsql_secret_table_t:db_table getattr; 
     284allow sepgsql_client_type sepgsql_secret_table_t:db_column getattr; 
     285 
     286allow sepgsql_client_type sepgsql_sysobj_t:db_table { getattr use select }; 
     287allow sepgsql_client_type sepgsql_sysobj_t:db_column { getattr use select }; 
     288allow sepgsql_client_type sepgsql_sysobj_t:db_tuple { use select }; 
     289 
     290allow sepgsql_client_type sepgsql_proc_t:db_procedure { getattr execute }; 
     291allow sepgsql_client_type sepgsql_trusted_proc_t:db_procedure { getattr execute entrypoint }; 
     292 
     293allow sepgsql_client_type sepgsql_blob_t:db_blob { create drop getattr setattr read write }; 
     294allow sepgsql_client_type sepgsql_ro_blob_t:db_blob { getattr read }; 
     295allow sepgsql_client_type sepgsql_secret_blob_t:db_blob getattr; 
     296 
     297# The purpose of the dontaudit rule in row-level access control is to prevent a flood of logs. 
     298# If a client tries to SELECT a table including violated tuples, these are filtered from 
     299# the result set as if not exist, but its access denied longs can be recorded within log files. 
     300# In generally, the number of tuples are much larger than the number of columns, tables and so on. 
     301# So, it makes a flood of logs when many tuples are violated. 
     302# 
     303# The default policy does not prevent anything for sepgsql_client_type sepgsql_unconfined_type, 
     304# so we don't need "dontaudit" rules in Type-Enforcement. However, MLS/MCS can prevent them 
     305# to access classified tuples and can make a audit record. 
     306# 
     307# Therefore, the following rule is applied for any domains which can connect SE-PostgreSQL. 
     308dontaudit { postgresql_t sepgsql_client_type sepgsql_unconfined_type } { sepgsql_table_type -sepgsql_sysobj_table_type }:db_tuple { use select update insert delete }; 
     309 
     310tunable_policy(`sepgsql_enable_users_ddl',` 
     311        allow sepgsql_client_type sepgsql_table_t:db_table  { create drop setattr }; 
     312        allow sepgsql_client_type sepgsql_table_t:db_column { create drop setattr }; 
     313        allow sepgsql_client_type sepgsql_sysobj_t:db_tuple  { update insert delete }; 
     314') 
     315 
     316######################################## 
     317# 
     318# Unconfined access to this module 
     319# 
     320 
     321allow sepgsql_unconfined_type sepgsql_database_type:db_database *; 
     322type_transition sepgsql_unconfined_type sepgsql_unconfined_type:db_database sepgsql_db_t; 
     323 
     324type_transition sepgsql_unconfined_type sepgsql_database_type:db_table sepgsql_table_t; 
     325type_transition sepgsql_unconfined_type sepgsql_database_type:db_procedure sepgsql_proc_t; 
     326type_transition sepgsql_unconfined_type sepgsql_database_type:db_blob sepgsql_blob_t; 
     327 
     328allow sepgsql_unconfined_type sepgsql_table_type:{ db_table db_column db_tuple } *; 
     329 
     330# unconfined domain is not allowed to invoke user defined procedure directly. 
     331# They have to confirm and relabel it at first. 
     332allow sepgsql_unconfined_type { sepgsql_proc_t sepgsql_trusted_proc_t }:db_procedure *; 
     333allow sepgsql_unconfined_type sepgsql_procedure_type:db_procedure { create drop getattr setattr relabelfrom relabelto }; 
     334 
     335allow sepgsql_unconfined_type sepgsql_blob_type:db_blob *; 
     336 
     337allow sepgsql_unconfined_type sepgsql_module_type:db_database install_module; 
     338 
     339kernel_relabelfrom_unlabeled_database(sepgsql_unconfined_type) 
  • trunk/policy/modules/system/init.fc

    r2441 r2713  
    3939# /usr 
    4040# 
     41/usr/bin/sepg_ctl       --      gen_context(system_u:object_r:initrc_exec_t,s0) 
     42 
    4143/usr/libexec/dcc/start-.* --    gen_context(system_u:object_r:initrc_exec_t,s0) 
    4244/usr/libexec/dcc/stop-.* --     gen_context(system_u:object_r:initrc_exec_t,s0) 
  • trunk/policy/modules/system/init.te

    r2668 r2713  
    11 
    2 policy_module(init,1.10.1
     2policy_module(init,1.10.2
    33 
    44gen_require(` 
  • trunk/policy/modules/system/libraries.te

    r2656 r2713  
    11 
    2 policy_module(libraries,2.1.0
     2policy_module(libraries,2.1.1
    33 
    44######################################## 
     
    3939type textrel_shlib_t alias texrel_shlib_t; 
    4040files_type(textrel_shlib_t) 
     41 
     42optional_policy(` 
     43        postgresql_loadable_module(lib_t) 
     44        postgresql_loadable_module(textrel_shlib_t) 
     45') 
    4146 
    4247######################################## 
  • trunk/policy/modules/system/unconfined.if

    r2655 r2713  
    8989 
    9090        optional_policy(` 
     91                postgresql_unconfined($1) 
     92        ') 
     93 
     94        optional_policy(` 
    9195                seutil_create_bin_policy($1) 
    9296                seutil_relabelto_bin_policy($1) 
  • trunk/policy/modules/system/unconfined.te

    r2703 r2713  
    11 
    2 policy_module(unconfined, 2.2.1
     2policy_module(unconfined, 2.2.2
    33 
    44######################################## 
  • trunk/policy/modules/system/userdomain.if

    r2694 r2713  
    11981198        ') 
    11991199 
     1200        optional_policy(` 
     1201                postgresql_userdom_template($1,$1_t,$1_r) 
     1202        ') 
     1203 
    12001204        # Run pppd in pppd_t by default for user 
    12011205        optional_policy(` 
     
    13681372 
    13691373        optional_policy(` 
     1374                postgresql_unconfined($1_t) 
     1375        ') 
     1376 
     1377        optional_policy(` 
    13701378                userhelper_exec($1_t) 
    13711379        ') 
  • trunk/policy/modules/system/userdomain.te

    r2668 r2713  
    11 
    2 policy_module(userdomain, 3.0.1
     2policy_module(userdomain, 3.0.2
    33 
    44########################################