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

We should really minimize unnecessary "build as root" requirements

reassign 351412 linux-2.6


        When the mkvmlinuz_support_install target is called by
 make-kpkg, setting the proper permissions is take care of by
 make-kpkg at a later stage, so there is no need to call this target
 as root.

        If this target is called directly by a human, then the OS
 shall take care of permissions --- either the destination is
 writeable by the user, or not. Nominally, the command shall fail
 unless the user is root, which is how a make install at the top level
 works as well. Once the user is root, the installed files would have
 the proper permissions.  Also, there is no real requirement, apart
 from policy, that the pwnership be root:root; and if you build using
 make-kpkg, policy requirements shall be satisfied without
 mkvmlinuz_support_install target assuming it is run as root. 

        The user may have chown'd /lib/modules
 to a non-root user, in that case, requiring root would be
 incorrect -- since the home user is not constrained by policy.

To understand a program you must become both the machine and the
Manoj Srivastava     <srivasta@acm.org>    <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C

Reply to: