Changeset 2760

Show
Ignore:
Timestamp:
07/15/08 10:33:51 (5 months ago)
Author:
cpebenito
Message:

trunk: update init_telinit() for upstart's datagram socket usage instead of pipe useage.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Changelog

    r2743 r2760  
     1- Issuing commands to upstart is over a datagram socket, not the initctl 
     2  named pipe.  Updated init_telinit() to match. 
     3 
    14* Wed Jul 02 2008 Chris PeBenito <selinux@tresys.com> - 20080702 
    25- Fix httpd_enable_homedirs to actually provide the access it is supposed to 
  • trunk/policy/modules/system/init.if

    r2479 r2760  
    470470 
    471471        init_exec($1) 
     472 
     473        tunable_policy(`init_upstart',` 
     474                gen_require(` 
     475                        type init_t; 
     476                ') 
     477 
     478                # upstart uses a datagram socket instead of initctl pipe 
     479                allow $1 self:unix_dgram_socket create_socket_perms; 
     480                allow $1 init_t:unix_dgram_socket sendto; 
     481        ') 
    472482') 
    473483 
  • trunk/policy/modules/system/init.te

    r2742 r2760  
    11 
    2 policy_module(init, 1.11.0
     2policy_module(init, 1.11.1
    33 
    44gen_require(`