View Source

h1. *How to configure TX on a machine with GUI and fixed IP address*

Trusted Extensions is optionally-enabled layer of secure labeling technology that allows data security policies to be separated from data ownership. Is based on technology called "zones" where every object in one zone has the same label. So different zones have different labels. This technology is implemented in desktop environment like Trusted CDE and Trusted JDS. More informations are on location: http://docs.sun.com/app/docs/coll/175.12

\\
h3. *I. Install Solaris system*

with an extra slice (15Gb of space) for 4 zones. This extra slice must be mounted on */zone* (the directory must not have another name). In this howto, c0d1s4 will be used as an example of zone slice.

h3. *II. Create a ZFS pool:*

*a)* Comment out the line with zone slice in */etc/vfstab*

*b)* Umount the zone slice using the {color:red}# umount /zone{color} command

*c)* Create a ZFS pool with the command {color:red}# zpool create \-f zone c0d1s4{color}. The \-f option is neccesary because fresh installation creates a UFS filesystem on zone slice and we need to overwrite it with ZFS. If you want to check whether the pool was created correctly, use {color:red} # zpool list{color} or {color:red}# zpool status{color}. These commands will give you more information about the state of the ZFS pool.

h3. III. Enable remote connection

If you don't do this, you will not be able to log on to your Trusted Extensions system via ssh.

*a)* To enable remote connection, you need to edit */etc/pam.conf*. This file must contain these two lines:

{color:red}
other account requisite pam_roles.so.1 allow_remote
other account required pam_tsol_account.so.1 allow_unlabeled
{color}

*NOTE:* the first of these lines already exists (just add the last keyword), I created the other by overwriting the pam_unix_account.so.1 on the following one.


h3. IV. Enable Trusted Extensions

On older versions of Solaris, it was necessary to install additional packages for Trusted Extensions (their location on Solaris DVD was ExtraValue/CoBundled/Trusted_Extensions/) using the "java wizard" command. But in the latest builds, these packages are installed by default, so you only need to enable labeld by using command {color:red}# svcadm enable labeld{color} and reboot. To check whether the service is enabled correctly, type {color:red}# svcs labeld{color}. Be patient, as enabling the service can take several seconds.

After the service is enabled, reboot the machine.

h3. V. Configure Trusted Extensions

*a)* Open */etc/hostname.\** file in a text editor and add the string
{color:red}all-zones{color} to it. The file should look like this:

{color:red}hostname all-zones{color}

where "hostname" is the hostname of the system.

*b)* Edit */etc/security/tsol/tnzonecfg* and add the following lines:

{color:red}
public:0x0002-08-08:0::
internal:0x0004-08-48:0::
needtoknow:0x0004-08-68:0::
restricted:0x0004-08-78:0::
{color}

*c)* Edit */etc/security/tsol/tnrhdb* file and add following line:

{color:red}123.123.123.123:cipso{color}

*NOTE*: substitute IP with your current IP adress what you can find out from output of command {color:red}# ifconfig -a{color}

*d)* Edit /etc/security/tsol/tnrhtp and add following lines:

{color:red}
public:host_type=unlabeled;doi=1;min_sl=ADMIN_LOW;max_sl=ADMIN_HIGH;def_label=0x0002-08-08;
internal:host_type=unlabeled;doi=1;min_sl=ADMIN_LOW;max_sl=ADMIN_HIGH;def_label=0x0004-08-48;
needtoknow:host_type=unlabeled;doi=1;min_sl=ADMIN_LOW;max_sl=ADMIN_HIGH;def_label=0x0004-08-68;
restricted:host_type=unlabeled;doi=1;min_sl=ADMIN_LOW;max_sl=ADMIN_HIGH;def_label=0x0004-08-78;
{color}

*e)* Reboot the machine

h3. VI. Install zones
Quite fast way how to install public, intenal, needtoknow and restricted zones is use txzonemgr.

*a)* Choose "Create a new zone" --> OK, zone name is "public" and after choose "Install..." and press OK. This step is quite time consuming so you have time about 20minutes (depends on machine) for tee or coffee :-), before the zone is installed. After the installation finish enter hostname of your machine. After choose "Ready" then "Zone Console" and "Boot" After this step you have to answer some questions what are the same as in fresh installation.

*b)* Login in public zone and provide steps bellow

{color:red}
# rm /etc/auto_home_public
# netservices limited (only for s10)
# svcadm disable auditd
# svcadm disable cde-login
# exit
{color}

*c)* Halt the public zone and create a snapshot and after you can boot public zone again.

*d)* Install zones: internal, needtoknow and restricted. Choose "Return to Main Menu" and after choose in txzonemgr "Create a new zone" and enter the name "internal"/"needtoknow"/"restricted". Choose "Clone" and select zone/public@snapshot. After "Zone Console..." and "Boot"

*e)* Last step - Choose "Exit" item in txzonemgr and press OK.

h3. VII. Create user with support TX
The fastest way howto create user with support of Trusted Extension is use smc, but on s10 smc doesn't work

*a)* Open smc (e.g.: from command line by using command smc). A lot of modules are loaded, so it take about 10minutes. *<=== only for SOLARIS 11*

*a)* On the latest builds of S10 SMC doesn't work so it is neccessary to use command "useradd" *<=== only for SOLARIS 10*

{color:red}
# useradd -d /export/home/txuser -m -s /bin/bash txuser
# passwd txuser
# echo "txuser::::lock\_after\_retries=no;profiles=User Management;labelview=internal,shows1;min\_label=admin\_low;clearance=admin\_high;type=normal;roles=root;auths=solaris.label.file.\*,solaris.label.win.\*,solaris.device.allocate,solaris.\*,win\_upgrade\_sl,win\_downgrade\_sl,file\_updgrade\_sl,file\_downgrade\_sl,win\_mac\_read,win\_mac\_write,file\_dac\_read,file\_dac\_write" >> /etc/user\_attr
# reboot
{color}

After create txuser check if in each zone exist home directories for user

{color:red}
# zlogin -C public
# mkdir -p /export/home/txuser
# chown txuser /export/home/txuser
{color}

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact