Re: World writable tarballs



On Sun, Apr 30, 2006 at 12:49:16PM +0100, Alistair John Strachan wrote:
Really, people that complain about security should have a modicum of a clue;
allowing a tar file that _somebody else_ applied _their_ security policy, to
define yours, is a deeply flawed concept. umask is there for a reason.

I think you are missing an important point here. Any person who compiles
a kernel image trusts the providers much more than file modes if one is
to run the kernel too so it's not like file modes are killer of trust
here. You might also argue that "NO_ROOT_HOLE=yes make modules_install"
is required for kernel to install non-world-writable modules.

My umask is just fine, 077. Also, as noted, it does make sense
that tar preserves attributes because admins use it for backuping.

--
Heikki Orsila Barbie's law:
heikki.orsila@xxxxxx "Math is hard, let's go shopping!"
http://www.iki.fi/shd
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: evangelizing linux not needed
    ... Both should be umask (do a "man mount" to see mounting options). ... an installer to guess things for you. ... used for your stock kernel. ...
    (alt.os.linux)
  • Re: [SLE] Alert
    ... >>Randall Schulz ... we give Unix file modes in numeric form, we use octal, not hex, so each ... I'm pretty sure Anders and I would agree about what file mode ... would result from any given creatcall and umask value. ...
    (SuSE)
  • Re: [Full-disclosure] Re: Linux kernel source archive vulnerable
    ... >>> the kernel as root. ... >> Which obviously doesn't help you when a non-root user edits the ... Unpacking the kernel as non-root honors umask. ...
    (Full-Disclosure)
  • Re: Need for default umask
    ... permissions we want rather than permission - default umask? ... This is modified by the umask in the kernel. ... so that file permissions result in 0644 ... be to pass it in the environment and write something like ...
    (comp.unix.internals)