[Buildroot] [PATCH] sudo: fix main executable permissions

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Aug 4 12:43:16 UTC 2012


Le Fri,  3 Aug 2012 13:48:31 +0100,
spdawson at gmail.com a écrit :

> +define SUDO_FIX_PERMISSIONS
> +  chmod 4755 $(TARGET_DIR)/usr/bin/sudo
> +endef
> +
> +SUDO_POST_INSTALL_TARGET_HOOKS += SUDO_FIX_PERMISSIONS

The principle is good, but not the way it is implemented.  Please use
the <pkg>_PERMISSIONS infrastructure instead. See the documentation, or
package/busybox/busybox.mk for an example.

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list