[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: parted is ALMOST suitable



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Nov 09, 2016 at 04:56:36PM -0700, Joe Pfeiffer wrote:
> Brian <ad44@cityscape.co.uk> writes:

[...]

> >> Hopefully. But that's not because bash checks that (as parted is).
> >> It's because the permissions on the device file are set right!
> >
> > udev doesn't come into the picture for removable disks? It did on
> > pre-Jessie.
> 
> What is the relevance of udev here?  Yes, udev sets the permissions, but
> the issue is whether they're right not who sets them.

Exactly.

That was my take, too. It's udev's job to react to events generated by
the kernel and to set up things in user space (perms, symlinks, whatnot)
according to whatever policy the distro and the sysadmin have set up.

That's why the rules in /lib/udev (distribution) and /etc/udev (sysad,
override the distro's) exist. The kernel is no place to have those
rules, it's just the one enforcing them.

Layering, again :-)

- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlgkN10ACgkQBcgs9XrR2kbR+gCdEXRyxAM6+Wx/mcZ4FSxf4LMl
T1sAn0yMoDTouLMigQyXHLvUFpP+RCbe
=ijKP
-----END PGP SIGNATURE-----


Reply to: