summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sudo
AgeCommit message (Collapse)Author
2017-11-29sudo: improve reproducibilityJuro Bystricky
Delete various build host references from the internally generated file sudo_usage.h. The references get compiled into executables, which leads to non-reproducible builds. The removed references (configure options) were only used as part of the sudo "usage", and even then only when ran as root. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-11-21sudo: upgrade to 1.8.21p2Chen Qi
Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-07-27sudo: upgrade to 1.8.20p2Chen Qi
The checksum for doc/LICENSE is changed, but the content only changes year from '2013' to '2017', so the license remains the same. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-01sudo: upgrade to 1.8.19p2Chen Qi
The license checksum for doc/LICENSE is changed. It's a small change. '2015' is changed to '2017'. Nothing else is changed. So the licenses remain the same. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-03-01recipes: Make use of the new bb.utils.filter() functionPeter Kjellerstedt
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-12-17sudo: 1.8.17p1 -> 1.8.18p1Huang Qiyu
Upgrade sudo from 1.8.17p1 to 1.8.18p1. (From OE-Core rev: 31bafcbcb59bdb370a918ad9b96d4b07af3993f2) Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-07-20sudo: upgrade to 1.8.17p1Chen Qi
Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-06-13sudo: upgrade to 1.8.16Chen Qi
Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-04-13sudo: fix pam config on systemd systemsDan McGregor
Pam_keyinit revoke causes issues on systemd systems. Make its use optional. This brings it in line with Fedora 23 and Centos 7. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-12-12sudo: upgrade to 1.8.15Fan Xin
1. upgrade to 1.8.15 2. delete patch file due to the bug has been fixed in sudo 1.8.15 (http://bugzilla.sudo.ws/show_bug.cgi?id=708) Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2015-12-12sudo: remove libdir INSANE_SKIPRoss Burton
Now that the libdir check allows libraries in libexecdir, remove INSANE_SKIP. Signed-off-by: Ross Burton <ross.burton@intel.com>
2015-12-08sudo: handle libexecdir != libdir/PN.Ross Burton
sudo has somewhat special file installation logic and installs the modules and libraries to $libexecdir/sudo, with special handling for the case when libexecdir already contains /sudo (which it does by default in current oe-core where libexecdir=$libdir/$PN). As setting libexecdir to /usr/libexec should work, add both possibilities to FILES to be sure the right files are captured, and add INSANE_SKIP for the libdir warning that libraries are outside of /usr/lib/ (arguably, this should be fixed in insane). Signed-off-by: Ross Burton <ross.burton@intel.com>
2015-10-21sudo: fix file permission for /etc/pam.d/sudoChen Qi
The file permission should be 0644 instead of 0664. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2015-09-12sudo: Disable rsize_t deliberatelyKhem Raj
gcc does not have it but clang does, problem happens when host compiler is gcc and cross compiler is clang, because autoconf detects it with clang and slaps it to host compiler as well Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2015-09-12sudo: Include sys/types.h for id_t definitionKhem Raj
This is exposed by musl, on glibc sys/types.h comes as indirect include from other include myriad. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2015-07-27sudo: upgrade to 1.8.14p3Ross Burton
The licence checksum is modified according to the change of doc/LICENCE. In specific, file://lib/util/reallocarray.c is added to LIC_FILES_CHECKSUM. Fix out of tree builds, and explicitly enable/disable tmpfiles.d support based on the systemd DISTRO_FEATURE to avoid non-deterministic packaging. Based on a patch by Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-04-13sudo: Disable hardening for muslKhem Raj
musl does not yet enable ssp Change-Id: If40ab0a54b17d5528676b1268182b6c7e7ef5761 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-04-09sudo: upgrade to 1.8.13Chen Qi
The do_configure_prepend is deleted because it doesn't seem to have any positive effect and it causes the following error. | aclocal: error: acinclude.m4:133: file 'm4/ax_sys_weak_alias.m4' does not exist | autoreconf: aclocal failed with exit status: 1 | ERROR: autoreconf execution failed. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-12-27sudo: upgrade to latest state version 1.8.11p2Chen Qi
Files containing license information have changed position. FILES_${PN}-dev needs to be modified to contain correct files. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-10sudo: make sudoers a config fileDan McGregor
Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23sudo: remove volatile configuration fileChen Qi
The new version of sudo has fixed the problem and will create the directory if it doesn't exist. So the configuration file is no longer needed. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-25sudo: upgrade from 1.8.10p2 to 1.8.10p3Chen Qi
Upgrade sudo from 1.8.10p2 to 1.8.10p3. [YOCTO #6457] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-05-08sudo: upgrade from 1.8.9p5 to 1.8.10p2Chen Qi
Upgrade sudo from 1.8.9p5 to the newest stable release 1.8.10p2. The license checksums are modified as required, because the doc/LICENSE file now declares that compat/inet_pton.c bears the ISC license. As /var/run/sudo is the default directory for sudo's time stamp files, this patch adds a configuration file to manage this directory. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2014-04-25Globally replace 'base_contains' calls with 'bb.utils.contains'Otavio Salvador
The base_contains is kept as a compatibility method and we ought to not use it in OE-Core so we can remove it from base metadata in future. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-03-17sudo: upgrade to 1.8.9p5Chen Qi
Upgrade sudo from 1.8.9p1 to 1.8.9p5. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-14sudo: upgrade to 1.8.9p1Chen Qi
Upgrade sudo from 1.8.8 to 1.8.9p1. This patch adds include/queue.h to the LIC_FILES_CHECKSUM because it's specified in the doc/LICENSE file. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-12-05classes/recipes: More optimal DISTRO_FEATURES referencesRichard Purdie
Using the contains function results in more optimal sstate checksums resulting in better cache reuse as we as more consistent code. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-10-30sudo: upgrade to 1.8.8Cristiana Voicu
License checksum updated to reflect additional Copyright for file getopt_long.c, owned by The NetBSD Foundation, Inc Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-08-16sudo: upgrade to 1.8.7Cristiana Voicu
Removed a patch because the changes were merged upstream. Also, the license had some modifications in two files. Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-08-09sudo: quote BUILD_CCKai Kang
BUILD_CC is assigned to CC when do compile. If BUILD_CC has multi-items such as "ccache gcc", compilation fails with: make: *** No rule to make target `gcc'. Stop. Double quote BUILD_CC to avoid this error. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-07-27sudo: add PACKAGECONFIG for zlibMartin Jansa
* it's autodetected from sysroot * add PACKAGECONFIG to make it deterministic Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-06-10sudo : upgrade to 1.8.6p8Andrei Dinu
upgrade from 1.8.6p7 -> 1.8.6p8 - removed crypt.patch because it was contained upstream Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-05-24sudo: set CFLAGS for build mksigname and mksiglistKang Kai
mksigname and mksiglist are compiled by BUILD_CC for build host. When there are some options in CFLAGS that BUILD_CC doesn't support, compilation fails. Build for arm on a x86 host, if option "-mapcs-frame" is provided, error occurs with: | cc1: error: unrecognized command line option "-mapcs-frame" Pass BUILD_CFLAGS to CFLAGS to fix that kind of failure. Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-04-29sudo: disable SSP for auxiliary build tools mksiglist and mksignameTomas Frydrych
The do_compile_prepend() fragment ensures that the non-installable build tools mksiglist and mksigname are built using the BUILD_CC, but if the the BUILD_CC does not support SSP and the cross compiler does, the build fails due to the SSP flags set in the Makefile. Ensuring that SSP is not enabled when building these tools prevents this from happening. Signed-off-by: Tomas Frydrych <tomas@sleepfive.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-12sudo: update crypt.patch to use backport from upstreamRoss Burton
Upstream closed my bug and rewrote the patch, so update our patch with a backport from upstream. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-11sudo: handle glibc 2.17 crypt semanticsRoss Burton
Staring from glibc 2.17 the crypt() function will error out and return NULL if the seed or "correct" is invalid. The failure case for this is the sudo user having a locked account in /etc/shadow, so their password is "!", which is an invalid hash. crypt() never returned NULL previously so this is crashing in strcmp(). [ YOCTO #4241 ] Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-23sudo: Fix out of tree builds ${B} != ${S}Richard Purdie
The last change to sudo broke out of tree builds, fix this. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-23sudo: Compile mksigname and mksiglist for build hostKhem Raj
cross compiling sudo doesnt work well since it uses mksigname and mksiglist to generate C sources which are then used in sudo build itself. With this patch now we make sure those hosttools are compiled for build machine. It fixes the build failures like ./mksigname > signame.c /bin/sh: ./mksigname: cannot execute binary file make[1]: *** [signame.c] Error 126 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-18sudo: Fix case where ${B} != ${S}Richard Purdie
Fix out of tree builds by using full path to files in ${S} and remove cwd assumptions. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-07sudo : upgrade to 1.8.6p7Andrei Dinu
Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-02-28sudo : upgrade to 1.8.6p6Andrei Dinu
Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-02-01Sudo : upgrade to 1.8.6p4Andrei Dinu
(From OE-Core rev: 115b1a703c26e11c631d77901104605d64f51f82) Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-08-06sudo: use ${bindir} and ${sysconfdir} instead of /usr/bin and /etcJavier Martinez Canillas
It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-06-25sudo: upgrade to 1.8.5p2Scott Garman
LIC_FILES_CHKSUM updated due to trivial copyright date change. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2012-05-25sudo: fixed wrong `chmod` pathMihai Lindner
Placed $D between braces ${D} to be correctly expanded to the workdir path, instead of a path relative to host rootfs. Currently, bitbake sudo fails on host systems where sudo is not installed. Signed-off-by: Mihai Lindner <mihaix.lindner@linux.intel.com>
2012-03-19sudo: upgrade to 1.8.4p4Scott Garman
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2012-03-02sudo: upgrade to 1.8.4Scott Garman
During the upgrade to 1.8.4, the UCB-licensed fnmatch.c was replaced with a non-recursive BSD-licensed version, hence the removal of UCB and addition of BSD in the LICENSE field. This led to checksum changes in the doc/LICENSE file, and we now additionally track the comment headers in redblack.c. These changes were confirmed on the sudo mailing list: http://www.sudo.ws/pipermail/sudo-workers/2012-February/000736.html This upgrade also fixes CVE-2012-0809. Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-11sudo: Avoid post install scriptsMark Hatle
The post install script was removed, and the install_append updated to ensure the permissions are set correctly. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-10-27sudo: upgrade to 1.8.3Scott Garman
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2011-09-22sudo: Fix PAM dependenciesMark Hatle
When PAM is enabled for the distribution we need to be sure to have a build dependency of libpam, and runtime dependencies on the pam modules used by the sudo package. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>