~j-harbott/cirros/dev

« back to all changes in this revision

Viewing changes to patches-buildroot/sudo-install-sudoers-so.patch

  • Committer: Scott Moser
  • Date: 2012-06-05 20:06:25 UTC
  • mto: This revision was merged to the branch mainline in revision 179.
  • Revision ID: smoser@ubuntu.com-20120605200625-8l87b9om75ir80ti
add patches-buildroot for patching buildroot

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
install sudoers.so in /usr/lib/sudo
 
2
 
 
3
Without this patch, the 'sudo' command in 1.8.X is broken on install.
 
4
'sudo ls' will result in a message complaining about 
 
5
/usr/libexec/sudoers.so.
 
6
 
 
7
diff --git a/package/sudo/sudo.mk b/package/sudo/sudo.mk
 
8
index 3629ad1..5d2bc61 100644
 
9
--- a/package/sudo/sudo.mk
 
10
+++ b/package/sudo/sudo.mk
 
11
@@ -12,7 +12,8 @@ SUDO_CONF_OPT = \
 
12
                --without-umask \
 
13
                --with-logging=syslog \
 
14
                --without-interfaces \
 
15
-               --without-pam
 
16
+               --without-pam \
 
17
+               --libexecdir=/usr/lib/sudo
 
18
 
 
19
 define SUDO_INSTALL_TARGET_CMDS
 
20
        install -m 4555 -D $(@D)/src/sudo $(TARGET_DIR)/usr/bin/sudo
 
21
@@ -20,6 +21,8 @@ define SUDO_INSTALL_TARGET_CMDS
 
22
                $(TARGET_DIR)/usr/sbin/visudo
 
23
        install -m 0440 -D $(@D)/plugins/sudoers/sudoers \
 
24
                $(TARGET_DIR)/etc/sudoers
 
25
+       install -m 0440 -D $(@D)/plugins/sudoers/.libs/sudoers.so \
 
26
+               $(TARGET_DIR)/usr/lib/sudo/sudoers.so
 
27
 endef
 
28
 
 
29
 $(eval $(call AUTOTARGETS))