Received: from jazzhorn.ncsc.mil (mummy.ncsc.mil [144.51.88.129]) by tarius.tycho.ncsc.mil (8.13.1/8.13.1) with SMTP id l7DKEC4W019524 for ; Mon, 13 Aug 2007 16:14:12 -0400 Received: from an-out-0708.google.com (jazzhorn.ncsc.mil [144.51.5.9]) by jazzhorn.ncsc.mil (8.12.10/8.12.10) with ESMTP id l7DKEAxJ029205 for ; Mon, 13 Aug 2007 20:14:10 GMT Received: by an-out-0708.google.com with SMTP id c38so321761ana for ; Mon, 13 Aug 2007 13:13:53 -0700 (PDT) Message-ID: <4c4ba1530708131313n350f4036o7a2d513770a65c90@mail.gmail.com> Date: Mon, 13 Aug 2007 13:13:52 -0700 From: "Tom London" To: "Stephen Smalley" Subject: Re: Strange behavior with skype Cc: "Daniel J Walsh" , "Karl MacMillan" , "SE Linux" , "James Morris" , "Eric Paris" In-Reply-To: <1187010842.26008.32.camel@moss-spartans.epoch.ncsc.mil> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <46BE75D1.5030503@redhat.com> <1187010842.26008.32.camel@moss-spartans.epoch.ncsc.mil> Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On 8/13/07, Stephen Smalley wrote: > On Sat, 2007-08-11 at 22:52 -0400, Daniel J Walsh wrote: > > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=246762 > > > > I downloaded skype from this site > > > > http://www.skype.com/download/skype/linux/ > > > > Installed it and did a > > > > chcon -t unconfined_execmem_exec_t /usr/bin/skype > > > > # ls -lZ /usr/bin/skype > > -rwxr-xr-x root root system_u:object_r:unconfined_execmem_exec_t /usr/bin/skype > > > > > > But when I run it, I still get > > > > time->Sat Aug 11 22:46:20 2007 > > type=PATH msg=audit(1186886780.191:3467): item=1 name=(null) inode=8060946 dev=fd:00 mode=0100755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:ld_so_t:s0 > > type=PATH msg=audit(1186886780.191:3467): item=0 name="/usr/bin/skype" inode=10345414 dev=fd:00 mode=0100755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:unconfined_execmem_exec_t:s0 > > type=CWD msg=audit(1186886780.191:3467): cwd=2F686F6D652F646576656C2F6477616C73682F4D7920446F776E6C6F616473 > > type=EXECVE msg=audit(1186886780.191:3467): a0="skype" > > type=SYSCALL msg=audit(1186886780.191:3467): arch=40000003 syscall=11 success=no exit=-13 a0=9eb8958 a1=9eb8b58 a2=9e95c30 a3=0 items=2 ppid=4077 pid=5789 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts3 comm="skype" subj=system_u:system_r:unconfined_t:s0 key=(null) > > type=AVC msg=audit(1186886780.191:3467): avc: denied { execmem } for pid=5789 comm="skype" scontext=system_u:system_r:unconfined_t:s0 tcontext=system_u:system_r:unconfined_t:s0 tclass=process > > > > When I run a unconfined_execmem_exec_t shell script with id -Z I get the proper transition. > > > > system_u:system_r:unconfined_execmem_t > > IIUC, in this case, the attempt to create the mapping is happening from > the kernel elf loader while mapping in the new executable _before_ the > domain transition takes effect. So it shows up as a check on the caller > domain rather than the new domain. > That pretty much describes what I am seeing.... I believe this behavior started just a bit before I filed the BZ, as my recollection is this 'used to work'. That possible? tom -- Tom London -- 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.