From: Daniel J Walsh <dwalsh@redhat.com>
To: russell@coker.com.au
Cc: Colin Walters <walters@verbum.org>,
Eric Paris <eparis@redhat.com>,
selinux@tycho.nsa.gov, lennart@poettering.net, sds@tycho.nsa.gov
Subject: Re: A filename to label translation daemon
Date: Sun, 12 Aug 2012 07:02:13 -0400 [thread overview]
Message-ID: <50278D35.3060901@redhat.com> (raw)
In-Reply-To: <201208102335.40545.russell@coker.com.au>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 08/10/2012 09:35 AM, Russell Coker wrote:
> On Fri, 10 Aug 2012, Daniel J Walsh <dwalsh@redhat.com> wrote:
>>> What is kerberos doing under /tmp and why is it being done repeatedly
>>> by different processes?
>>
>> Actually /var/tmp/HOST_0 /var/tmp/HTTP_23 ... Kerberos Replay Cache.
>> Every time someone contacts an apache server using kerberos it needs to
>> update this file, it does this via mktemp (/tmpHTTPD_23XXXX), rename.
>
> When replacing an existing file wouldn't it be better to just copy the
> context of the existing file when creating the replacement? If there was
> some good reason for running chcon on such a file (and I can't imagine a
> reason but it's best to leave the options open IMHO) then having the
> context change back the next time someone connects seems like a bug.
>
They use setfscreatecon, if file does not exist, it gets labeled incorrectly.
>>>> Running make install has caused a huge hit if you are running
>>>> thousands of install commands which caused the remove of labeling
>>>> from the install command.
>>>
>>> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638304
>>>
>>> I believe that is a design bug in the SE Linux code in install, I've
>>> filed the above Debian bug report about it.
>>>
>>> I think that correct design of install wouldn't have a "make install"
>>> performed as part of a dpkg or rpm build do any SE Linux checks. That
>>> would be faster than any other option.
>>
>> Programmers and testers regularly run make install and this ends up
>> badly mislabling files all over the place, telling everyone they have to
>> use rpm or dpkg is not going to fly.
>
> The current behavior of dpkg-buildpackage (and presumably a similar RPM
> build) producing lots of warning messages from install (depending on where
> you build it) isn't great either.
>
> Would it be possible to have dpkg-buildpackage (and other relevant
> programs) set an environment variable to modify the behavior of install in
> such situations?
>
> Also note that as install doesn't apply such contexts when creating
> directories the problem of testers running "make install" isn't properly
> solved with the current code.
>
>>>> Systemd has been is executing the load load many many times and is
>>>> showing up to 1 second slow down on startup. If the startup is 10
>>>> seconds, it is kind of hard to justify 10% slowdown on boot.
>>>
>>> Wow, who's got a 10 second boot?
>>>
>>> Is systemd loading the file contexts 100 times? If not then why is it
>>> taking a second?
>>
>> 10 second boot is available with solid state machines. Systemd has not
>> seen the kind of performance that you are and obviously this is
>> sensitive to the speed of the CPU/Memory.
>
> Why isn't systemd seeing the same performance?
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlAnjTQACgkQrlYvE4MpobM2YQCgpErvn+KDksgOSNHiGJfiJ+x0
07cAn2atoTxS/sAAR3/lOtsOIfAeygmM
=IrXz
-----END PGP SIGNATURE-----
--
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.
next prev parent reply other threads:[~2012-08-12 11:02 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-08 19:31 A filename to label translation daemon Eric Paris
2012-08-08 20:05 ` Stephen Smalley
2012-08-08 20:52 ` Daniel J Walsh
2012-08-08 20:55 ` Eric Paris
2012-08-08 21:26 ` Colin Walters
2012-08-09 14:37 ` Russell Coker
2012-08-09 17:06 ` Daniel J Walsh
2012-08-09 17:51 ` Colin Walters
[not found] ` <20120810141101.GC32076@tango.0pointer.de>
[not found] ` <20120810141747.GA909@tango.0pointer.de>
2012-08-13 17:36 ` Daniel J Walsh
2012-08-13 17:55 ` Colin Walters
2012-08-13 18:06 ` Daniel J Walsh
2012-08-14 11:18 ` Russell Coker
2012-08-14 12:38 ` Eric Paris
2012-08-14 14:01 ` Eric Paris
2012-08-14 16:48 ` Stephen Smalley
2012-08-14 17:21 ` Eric Paris
2012-08-14 22:34 ` Russell Coker
2012-08-15 5:56 ` Russell Coker
2012-08-15 13:22 ` Eric Paris
2012-08-16 23:51 ` Eric Paris
2012-08-10 2:28 ` Russell Coker
2012-08-10 12:39 ` Daniel J Walsh
2012-08-10 13:35 ` Russell Coker
2012-08-12 11:02 ` Daniel J Walsh [this message]
[not found] ` <20120810140503.GB32076@tango.0pointer.de>
2012-08-12 11:03 ` Daniel J Walsh
[not found] ` <20120813151821.GB4861@redhat.com>
2012-08-13 16:37 ` Daniel J Walsh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50278D35.3060901@redhat.com \
--to=dwalsh@redhat.com \
--cc=eparis@redhat.com \
--cc=lennart@poettering.net \
--cc=russell@coker.com.au \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=walters@verbum.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.