Subject: Re: This is my first patch for systemd From: Stephen Smalley To: Daniel J Walsh Cc: SELinux In-Reply-To: <4C48687B.1050605@redhat.com> References: <4C4837F2.1070806@redhat.com> <1279808480.11197.28.camel@moss-pluto.epoch.ncsc.mil> <4C48687B.1050605@redhat.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 22 Jul 2010 12:48:12 -0400 Message-ID: <1279817292.11197.44.camel@moss-pluto.epoch.ncsc.mil> Mime-Version: 1.0 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Thu, 2010-07-22 at 11:49 -0400, Daniel J Walsh wrote: > Updated with your comments. Strange the FIFO_FILE did not cause > security_compute_create to fail when passing a 0 for the tclass? I > though this should fail. > > I changed the patch to check the output of string_to_security_class. > Will write the selabel patch after this is accepted. > > Not checking the return of setfscreatecon(NULL) or > setsockcreatecon(NULL) Since I am not sure what to do if these fail and > not likely to fail since the previous calls worked. Yes, that's fine. > Is there any way to see what a socket is labeled? netstat -aZ is just > showing the process context, not the context of the label on the socket? netstat should be able to call fgetfilecon() on the socket fd after opening the /proc/pid/fd/ file to get the socket label. Not sure why it is using getpidcon() on the process instead. Who wrote that patch? -- Stephen Smalley National Security Agency -- 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.