File: shared.xml

package info (click to toggle)
scap-security-guide 0.1.78-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 114,600 kB
  • sloc: xml: 245,305; sh: 84,381; python: 33,093; makefile: 27
file content (48 lines) | stat: -rw-r--r-- 2,503 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<def-group>
    <definition class="compliance" id="{{{ rule_id }}}" version="1">
        {{{ oval_metadata("Ensure system-auth and password-auth files are symbolic links pointing to system-auth-local and password-auth-local", rule_title=rule_title) }}}
        <criteria operator="AND" comment="password-auth and system-auth are symlinks">
            <criterion comment="/etc/pam.d/password-auth is a symlink and
                points to /etc/pam.d/password-auth-local"
                test_ref="test_password-auth_is_a_symlink" />
            <criterion comment="/etc/pam.d/system-auth is a symlink and
                points to /etc/pam.d/system-auth-local"
                test_ref="test_system-auth_is_a_symlink" />
        </criteria>
    </definition>

    <unix:symlink_test check="all" check_existence="all_exist"
      comment="/etc/pam.d/password-auth is a symlink and points to /etc/pam.d/password-auth-local"
      id="test_password-auth_is_a_symlink" version="1">
         <unix:object object_ref="object_password-auth_is_a_symlink" />
         <unix:state state_ref="state_password-auth_is_a_symlink" />
    </unix:symlink_test>

    <unix:symlink_test check="all" check_existence="all_exist"
      comment="/etc/pam.d/system-auth is a symlink and points to /etc/pam.d/system-auth-local"
      id="test_system-auth_is_a_symlink" version="1">
         <unix:object object_ref="object_system-auth_is_a_symlink" />
         <unix:state state_ref="state_system-auth_is_a_symlink" />
    </unix:symlink_test>

    <unix:symlink_object comment="/etc/pam.d/system-auth is a symlink"
      id="object_system-auth_is_a_symlink" version="1">
        <unix:filepath>/etc/pam.d/system-auth</unix:filepath>
    </unix:symlink_object>

    <unix:symlink_object comment="/etc/pam.d/password-auth is a symlink"
      id="object_password-auth_is_a_symlink" version="1">
        <unix:filepath>/etc/pam.d/password-auth</unix:filepath>
    </unix:symlink_object>

    <unix:symlink_state comment="/etc/pam.d/system-auth points to /etc/pam.d/system-auth-local"
      id="state_system-auth_is_a_symlink" version="1">
        <unix:canonical_path>/etc/pam.d/system-auth-local</unix:canonical_path>
    </unix:symlink_state>

    <unix:symlink_state
      comment="/etc/pam.d/password-auth points to /etc/pam.d/password-auth-local"
      id="state_password-auth_is_a_symlink" version="1">
        <unix:canonical_path>/etc/pam.d/password-auth-local</unix:canonical_path>
    </unix:symlink_state>
</def-group>