3 |
- |
1 |
<?xml version="1.0"?>
|
|
|
2 |
|
|
|
3 |
<!DOCTYPE busconfig PUBLIC
|
|
|
4 |
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
|
|
5 |
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
|
|
6 |
|
|
|
7 |
<busconfig>
|
|
|
8 |
|
|
|
9 |
<!-- This configuration file specifies the required security policies
|
|
|
10 |
for the oddjob_mkhomedir service to work. It controls which requests
|
|
|
11 |
users will be allowed to issue to oddjobd over the bus, which is quite
|
|
|
12 |
different from controlling whether or not oddjobd will attempt to
|
|
|
13 |
fulfill the request. -->
|
|
|
14 |
|
|
|
15 |
<!-- Only root can own (provide) the com.redhat.oddjob_mkhomedir service
|
|
|
16 |
on the system bus. -->
|
|
|
17 |
<policy user="root">
|
|
|
18 |
<allow own="com.redhat.oddjob_mkhomedir"/>
|
|
|
19 |
</policy>
|
|
|
20 |
|
|
|
21 |
<!-- Allow anyone to call the introspection methods of the "/" object
|
|
|
22 |
provided by the com.redhat.oddjob_mkhomedir service. -->
|
|
|
23 |
<policy context="default">
|
|
|
24 |
<allow send_destination="com.redhat.oddjob_mkhomedir"
|
|
|
25 |
send_path="/"
|
|
|
26 |
send_interface="org.freedesktop.DBus.Introspectable"/>
|
|
|
27 |
</policy>
|
|
|
28 |
|
|
|
29 |
<!-- Allow anyone to try to call the mkhomedirfor method, which is part of
|
|
|
30 |
the "mkhomedir" interface implemented by the "/" object provided
|
|
|
31 |
by the com.redhat.oddjob_mkhomedir service. -->
|
|
|
32 |
<policy context="default">
|
|
|
33 |
<allow send_destination="com.redhat.oddjob_mkhomedir"
|
|
|
34 |
send_path="/"
|
|
|
35 |
send_interface="com.redhat.oddjob_mkhomedir"
|
|
|
36 |
send_member="mkhomedirfor"/>
|
|
|
37 |
</policy>
|
|
|
38 |
|
|
|
39 |
<!-- Allow anyone to try to call the mkmyhomedir method, which is part of
|
|
|
40 |
the "mkhomedir" interface implemented by the "/" object provided
|
|
|
41 |
by the com.redhat.oddjob_mkhomedir service. -->
|
|
|
42 |
<policy context="default">
|
|
|
43 |
<allow send_destination="com.redhat.oddjob_mkhomedir"
|
|
|
44 |
send_path="/"
|
|
|
45 |
send_interface="com.redhat.oddjob_mkhomedir"
|
|
|
46 |
send_member="mkmyhomedir"/>
|
|
|
47 |
</policy>
|
|
|
48 |
|
|
|
49 |
</busconfig>
|