Received: from jazzband.ncsc.mil (jazzband.ncsc.mil [144.51.5.4]) by tycho.ncsc.mil (8.12.8/8.12.8) with ESMTP id i3PGdeRb017289 for ; Sun, 25 Apr 2004 12:39:42 -0400 (EDT) Received: from jazzband.ncsc.mil (localhost [127.0.0.1]) by jazzband.ncsc.mil with ESMTP id i3PGdcdi021881 for ; Sun, 25 Apr 2004 16:39:39 GMT Received: from abyss.simplyaquatics.com (abyss.simplyaquatics.com [69.44.152.139]) by jazzband.ncsc.mil with ESMTP id i3PGdcJP021878 for ; Sun, 25 Apr 2004 16:39:38 GMT Received: from localhost (localhost [127.0.0.1]) by abyss.simplyaquatics.com (Postfix) with ESMTP id 8CB2D3A404F for ; Sun, 25 Apr 2004 11:39:38 -0500 (CDT) Received: from TECRAS1 (simplyaquatics.com [209.192.116.78]) by abyss.simplyaquatics.com (Postfix) with ESMTP id D5AE63A404F for ; Sun, 25 Apr 2004 11:39:37 -0500 (CDT) From: "Ed Street" To: Subject: /etc/passwd labeling issues Date: Sun, 25 Apr 2004 12:39:37 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0225_01C42AC2.5F080680" Message-Id: <20040425163937.D5AE63A404F@abyss.simplyaquatics.com> Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov This is a multi-part message in MIME format. ------=_NextPart_000_0225_01C42AC2.5F080680 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hello, =20 As for the labeling issue for /etc/passwd I noticed in passwd.te this = line =20 file_type_auto_trans($1_t, etc_t, shadow_t, file) =20 Wouldn=92t this cause our labeling issue? If I remarked it out and = added the following lines. =20 allow passwd_t etc_t:dir { add_name remove_name write }; allow passwd_t initrc_var_run_t:file { lock }; allow passwd_t passwd_t:process { setrlimit }; allow passwd_t shadow_t:file { write lock create getattr read rename = setattr unlink }; =20 then the labeling on /etc/passwd is the same domain. i.e. -rw-r--r-- root root blacknet:object_r:etc_t = /etc/passwd =20 Then the only issue is the username which is workable. =20 The question I have is why we need to patch passwd when this seems to be = a policy issue. =20 Ed --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.662 / Virus Database: 425 - Release Date: 4/20/2004 =20 ------=_NextPart_000_0225_01C42AC2.5F080680 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Hello,

 

As for the labeling issue for /etc/passwd I noticed = in passwd.te this line

 

file_type_auto_trans($1_t, etc_t, shadow_t, = file)

 

Wouldn’t this cause our labeling issue?  = If I remarked it out and added the following lines.

 

allow passwd_t etc_t:dir { add_name remove_name write = };

allow passwd_t initrc_var_run_t:file { lock = };

allow passwd_t passwd_t:process { setrlimit = };

allow passwd_t shadow_t:file { write lock create = getattr read rename setattr unlink };

 

then the labeling on /etc/passwd is the same domain. = i.e.

-rw-r--r--  root     = root     blacknet:object_r:etc_t        &n= bsp; /etc/passwd

 

Then the only issue is the username which is = workable.

 

The question I have is why we need to patch passwd = when this seems to be a policy issue.

 

Ed


---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.662 / Virus Database: 425 - Release Date: 4/20/2004

------=_NextPart_000_0225_01C42AC2.5F080680-- -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.