* [gentoo-dev] /var/tmp world rwx?
@ 2003-01-03 22:42 Kevin N. Carpenter
2003-01-03 22:50 ` Paul de Vrieze
2003-01-04 9:23 ` Sven Vermeulen
0 siblings, 2 replies; 4+ messages in thread
From: Kevin N. Carpenter @ 2003-01-03 22:42 UTC (permalink / raw
To: gentoo-dev
I've been playing around with using tmpfs for /tmp and had it mounted
with my standard "noexec,nodev,nosuid" anti-hack security options. This
works fine for VI or other normal tools.
I wanted Portage to use it as well, to symbolically linked /var/tmp to /tmp.
That broke emerge. The "noexec" option prevents any builds from
working. That made me check one of my unmodified gentoo systems where I
spotted that /var/tmp was world read/execute. That's a security problem.
Any reason that /var/tmp can't be root read/execute only?
Kevin C.
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] /var/tmp world rwx?
2003-01-03 22:42 [gentoo-dev] /var/tmp world rwx? Kevin N. Carpenter
@ 2003-01-03 22:50 ` Paul de Vrieze
2003-01-03 23:04 ` Kevin N. Carpenter
2003-01-04 9:23 ` Sven Vermeulen
1 sibling, 1 reply; 4+ messages in thread
From: Paul de Vrieze @ 2003-01-03 22:50 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 990 bytes --]
On Friday 03 January 2003 23:42, Kevin N. Carpenter wrote:
> I've been playing around with using tmpfs for /tmp and had it mounted
> with my standard "noexec,nodev,nosuid" anti-hack security options. This
> works fine for VI or other normal tools.
>
> I wanted Portage to use it as well, to symbolically linked /var/tmp to
> /tmp.
>
> That broke emerge. The "noexec" option prevents any builds from
> working. That made me check one of my unmodified gentoo systems where I
> spotted that /var/tmp was world read/execute. That's a security problem.
>
> Any reason that /var/tmp can't be root read/execute only?
>
> Kevin C.
>
It's a standard temporary directory so yes. It should be open for the public.
This doesn't hold for /var/tmp/portage though. You also might want to use an
extra tmpfs or a bind mount or a change in make.conf as emerge has some
issues with symlinked paths.
Paul
--
Paul de Vrieze
Junior Researcher
Mail: pauldv@cs.kun.nl
Homepage: http://www.devrieze.net
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] /var/tmp world rwx?
2003-01-03 22:50 ` Paul de Vrieze
@ 2003-01-03 23:04 ` Kevin N. Carpenter
0 siblings, 0 replies; 4+ messages in thread
From: Kevin N. Carpenter @ 2003-01-03 23:04 UTC (permalink / raw
To: Paul de Vrieze; +Cc: gentoo-dev
Thats cool. Easy enough to mount both /tmp and /var/tmp as tmpfs with
my noexec,nosuid,nodev options.
Mounting /var/tmp/portage with just "nosuid, nodev" requires the mount
point to exist, which it won't as a freshly mounted tmpfs filesystem.
Still, easy enough to fix in local.start.
Thanks!
Kevin C.
Paul de Vrieze wrote:
>
>It's a standard temporary directory so yes. It should be open for the public.
>This doesn't hold for /var/tmp/portage though. You also might want to use an
>extra tmpfs or a bind mount or a change in make.conf as emerge has some
>issues with symlinked paths.
>
>Paul
>
>
>
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] /var/tmp world rwx?
2003-01-03 22:42 [gentoo-dev] /var/tmp world rwx? Kevin N. Carpenter
2003-01-03 22:50 ` Paul de Vrieze
@ 2003-01-04 9:23 ` Sven Vermeulen
1 sibling, 0 replies; 4+ messages in thread
From: Sven Vermeulen @ 2003-01-04 9:23 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 730 bytes --]
On Fri, Jan 03, 2003 at 04:42:31PM -0600, Kevin N. Carpenter wrote:
> That broke emerge. The "noexec" option prevents any builds from
> working. That made me check one of my unmodified gentoo systems where I
> spotted that /var/tmp was world read/execute. That's a security problem.
Besides the other answers in this thread, you could use quota's so that any
user can use maximum 1 bytes of space in /var/tmp, except for root ofcourse.
ANd euh, don't use tmpfs for /var/tmp if you are not planning on having a
seperate /var/tmp/portage, I know you know it, but perhaps other ppl that are
diagonally reading this thread don't :)
Wkr,
Sven Vermeulen
--
Fighting for peace is like fucking for virginity.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-01-04 9:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-03 22:42 [gentoo-dev] /var/tmp world rwx? Kevin N. Carpenter
2003-01-03 22:50 ` Paul de Vrieze
2003-01-03 23:04 ` Kevin N. Carpenter
2003-01-04 9:23 ` Sven Vermeulen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox