root/trunk/RHEL5.2/INSTALL

Revision 239, 6.7 kB (checked in by slawrence, 5 months ago)

Revert back to using cracklib for password control
Fix typo in tallylog3 installation location
Update INSTALL instructions
Update policy version number
Add pam and cracklib patch to the tree
Update build instructions with packages needed to build pam

Line 
1 Installing Certifiable Linux Integration Platform
2 =================================================
3
4 === Installing the RHEL 5.2 Base System ===
5
6 To begin installation of the Certified Linux Integration Platform, first obtain installation discs for Red Hat Enterprise Linux 5.2, Server.
7
8 Next, obtain the kickstart file (clip.ks) from http://oss.tresys.com/projects/clip/wiki/DownloadRelease#RHEL5.2. This file supplies Red Hat's installer, anaconda, with various install-time parameters. The local copy of the generic kickstart file needs to have the following edits made to it:
9
10         1. The partitioning information needs to be defined for the specific systems hardware requirements. Partition sizes are specified in megabytes sizes.
11         2. If the kickstart file is accessed via the network-based method, note that the client system must obtain its TCP/IP configuration information before it is able to resolve hostnames. This can be done by including the commented out line at the top of the kickstart script:
12
13                 # network --bootproto=dhcp
14
15         If this is not present and a network-based installation method is chosen, the server on which the kickstart script resides must be referred to directly by IP address.
16
17 The kickstart script is supplied to the Linux kernel as a boot parameter. The script can be conveyed to the kernel in various ways, either via a network connection (HTTP, FTP/TFTP and NFS are supported) or locally via floppy, harddisk or CDROM.
18
19 Boot from Disc 1 of the RHEL5.2 Server installation discs, supplying the kickstart script as a kernel boot parameter:
20
21 Accessing the kickstart file:
22
23         boot> linux ks=http://someserver/clip.ks
24
25         - or -
26
27         boot> linux ks=http://ipaddr/clip.ks
28
29         - or -
30
31         boot> linux ks=<device name>:/clip.ks
32
33 This will initiate the installation process. The user will choose appropriate values for settings prompted for by anaconda. At this point, anaconda will install the operating system and a few packages. At the end of the installation, you will be prompted to create a password for the 'root' and 'clipuser' users.  Once this is complete, a reboot will be necessary.
34
35 After rebooting, login to the system with the 'clipuser' account and the password you created. (The user name should be entered without quotes.)
36
37 Once this account has been authenticated, you will need to switch to the superuser account via the su command to complete the remaining steps of the CLIP installation. The password for this account is the root password you created.
38
39
40 === Installing Packages ===
41
42 A full CLIP installation requires an update SELinux toolchain, modified policy and some other userland tools included in the clip rpm. You can optionally install the IPTables rpm to have the ability to dynamically label packets.
43
44 The installation of RHEL 5.2 CLIP packages needs to occur in two phases, the second of which requires setting SELinux's enforcing mode to permissive.
45
46 First, install the PAM RPM for your architecture found in the Userland Packages section of http://oss.tresys.com/projects/clip/wiki/DownloadRelease#RHEL5.2. This rpm includes a patched cracklib module that allows password restrictions to be applied to the root user.
47
48         rpm -Uvh --force pam-0.99.6.2-3.27.$ARCH.rpm
49
50 Next, install the CLIP RPM for your architecture found in the Userland Packages section of http://oss.tresys.com/projects/clip/wiki/DownloadRelease#RHEL5.2:
51
52         rpm -ivh --force clip-2.0-1.$ARCH.rpm
53
54 The --force option is needed because a package installed in this step will overwrite files already installed by another package.
55
56 CLIP distributes an optionally installed IPTables package update that supports per packet labeling using SECMARK. A detailed description of SECMARK is available at: http://james-morris.livejournal.com/11010.html. The IPTables package is available at [wiki:DownloadRelease#RHEL5.1 DownloadRelease]
57
58 To use the update first install the rpm:
59
60         rpm -Uvh iptables-1.3.5-4.99.el5.$ARCH.rpm
61
62 After installing the rpm you must turn off the compat_net option that is enabled by the clip kickstart file. You can enable this at runtime by using the command
63
64         echo "0" > /selinux/compat_net
65
66 In order to make this change persistent across reboots edit the file /boot/grub/grub.conf and set selinux_compat_net=0
67
68 Finally packets can be labeled using rules such as:
69
70         iptables -A INPUT -t mangle -p tcp --dport 21 -j SECMARK --selctx system_u:object_r:ftp_client_packet_t:s0
71         iptables -A INPUT -t mangle -m state --state RELATED,ESTABLISHED -j CONNSECMARK --restore
72
73 The first rule will label all tcp packets received on port 21 system_u:object_r:ftp_client_packet_t:s0. The second rule ensures that all further packets that are part of initial connection will keep that label. All rules must be added to the mangle table. If a rule has an invalid context IPTables will return a very bad error code that is not descriptive. This problem exists because of the way that IPTables returns errors and was not easily solvable as part of our back port.
74
75 Now download the updated SELinux toolchain and policy RPMs found in the SELinux Policy section of DownloadRelease. To install the new policy, it is necessary to temporarily force SELinux into permissive mode:
76
77         setenforce 0
78         rpm -Uvh libsepol-1.16.14-1.$ARCH.rpm
79         rpm -Uvh --force libselinux-1.34.15-1.$ARCH.rpm
80         rpm -Uvh libselinux-python-1.34.15-1.$ARCH.rpm
81         rpm -Uvh libsemanage-1.10.9-1.$ARCH.rpm
82         rpm -Uvh checkpolicy-1.34.7-1.$ARCH.rpm
83         rpm -Uvh policycoreutils-1.34.16-1.$ARCH.rpm policycoreutils-newrole-1.34.16-1.$ARCH.rpm
84         rpm -ivh selinux-policy-clip-3.0-1.noarch.rpm
85
86 Note: Because the selinux-policy-clip rpm makes changes to class definitions, the policy will fail to load after installation.  A reboot is require before the policy will load.
87
88         reboot
89
90 After rebooting, login to the system with the 'clipuser' account and password.
91
92 Once this account has been authenticated, the user will be assigned a context of root:sysadm_r:sysadm_t. The user will still need to switch to the superuser account via the su command to perform administrative actions. These steps are necessary to meet auditing requirements specified by DCID 6/3.
93
94
95 === Configuring System Services ===
96
97 In order to minimize attack vectors into the system, the default installation of CLIP enables a minimal subset of services. The following services will be enabled when booted into runlevel 3 (the default for CLIP):
98
99         atd auditd crond iptables network syslog sysstat
100
101 An administrator who wishes to enable additional services should consider enabling the SELinux policy module(s) associated with the services being added. The chkconfig(8) utility should be used to add or remove services from a particular runlevel.
102
103 === Additional Operational Considerations ===
104
105 The CLIP installation process also defines a password for the bootloader, as required by the DCID 6/3, which is '123)(*qweASD'.
Note: See TracBrowser for help on using the browser.