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

Re: Packaging /dev entries as non-root



What we do is create the dev entries in a %post script. Our build environment is 100% user based, we never switch to root for anything.

The additional advantage in the %post is then you can do a simple uid check, if the user isn't root.. then you can't create the device nodes anyway.

--Mark

Axel Thimm wrote:
I am converting the current atrpms build environment from using root
to using a non priviledged user for building.

While assigning ownerships/modes can be done with attr, I now stumbled
over /dev entries. Is there a method to mknod as non-root (possibly
not), or to register /dev nodes in the rpm like with attr? Thanks.





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