1 | Summary: Allows command execution as root for specified users |
---|
2 | Summary(ja): スーパーユーザ権限でのコマンドの実行 |
---|
3 | Name: sudo |
---|
4 | Version: 1.7.10p8 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | License: ISC-style |
---|
7 | Group: Applications/System |
---|
8 | URL: http://www.sudo.ws/ |
---|
9 | |
---|
10 | Source0: http://www.sudo.ws/sudo/dist/sudo-%{version}.tar.gz |
---|
11 | Source1: sudo-sudoers-vine |
---|
12 | |
---|
13 | Patch1: sudo-1.6.7p5-strip.patch |
---|
14 | Patch4: sudo-1.7.1-envdebug.patch |
---|
15 | Patch5: sudo-1.7.10-libtool.patch |
---|
16 | Patch7: sudo-1.7.10p7-m4path.patch |
---|
17 | |
---|
18 | # security |
---|
19 | # nothing... |
---|
20 | |
---|
21 | Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
22 | BuildRequires: pam-devel |
---|
23 | BuildRequires: groff |
---|
24 | BuildRequires: flex |
---|
25 | BuildRequires: bison |
---|
26 | BuildRequires: openldap-devel |
---|
27 | BuildRequires: automake autoconf libtool |
---|
28 | BuildRequires: libcap-devel |
---|
29 | BuildRequires: zlib-devel |
---|
30 | |
---|
31 | Vendor: Project Vine |
---|
32 | Distribution: Vine Linux |
---|
33 | |
---|
34 | %description |
---|
35 | Sudo (superuser do) allows a system administrator to give certain users |
---|
36 | (or groups of users) the ability to run some (or all) commands as root while |
---|
37 | logging all commands and arguments. Sudo operates on a per-command basis, |
---|
38 | it is not a replacement for the shell. |
---|
39 | |
---|
40 | %description -l ja |
---|
41 | sudo は、特定のユーザや特定のグループに所属するユーザが、スーパーユーザ権限で |
---|
42 | いくつかのコマンド操作を行うことを許可するためのプログラムです。 |
---|
43 | |
---|
44 | %prep |
---|
45 | %setup -q |
---|
46 | %patch1 -p1 -b .strip |
---|
47 | %patch4 -p1 -b .envdebug |
---|
48 | %patch5 -p1 -b .libtool |
---|
49 | |
---|
50 | %patch7 -p1 -b .m4path |
---|
51 | |
---|
52 | # security fixes |
---|
53 | # nothing... |
---|
54 | |
---|
55 | libtoolize --force |
---|
56 | # handle newer autoconf |
---|
57 | rm -f acsite.m4 |
---|
58 | mv aclocal.m4 acinclude.m4 |
---|
59 | autoreconf -I m4 -fv --install |
---|
60 | |
---|
61 | %build |
---|
62 | %configure \ |
---|
63 | --prefix=%{_prefix} \ |
---|
64 | --sbindir=%{_sbindir} \ |
---|
65 | --libdir=%{_libdir} \ |
---|
66 | --sysconfdir=%{_sysconfdir} \ |
---|
67 | --with-iologdir=/var/log/sudo-io \ |
---|
68 | --with-pam \ |
---|
69 | --with-pam-login \ |
---|
70 | --with-logging=syslog \ |
---|
71 | --with-logfac=authpriv \ |
---|
72 | --with-tty-tickets \ |
---|
73 | --with-ignore-dot \ |
---|
74 | --with-editor=/bin/vi \ |
---|
75 | --with-env-editor \ |
---|
76 | --with-ldap \ |
---|
77 | --with-passprompt="[sudo] password for %p: " \ |
---|
78 | --with-secure-path="/sbin:/bin:/usr/sbin:/usr/bin" \ |
---|
79 | --without-interfaces |
---|
80 | make %{?_smp_mflags} |
---|
81 | |
---|
82 | %install |
---|
83 | rm -rf $RPM_BUILD_ROOT |
---|
84 | mkdir $RPM_BUILD_ROOT |
---|
85 | make install DESTDIR="$RPM_BUILD_ROOT" install_uid=`id -u` install_gid=`id -g` sudoers_uid=`id -u` sudoers_gid=`id -g` |
---|
86 | chmod 755 $RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT%{_sbindir}/* |
---|
87 | install -p -d -m 700 $RPM_BUILD_ROOT/var/run/sudo |
---|
88 | install -p -d -m 700 $RPM_BUILD_ROOT/var/log/sudo-io |
---|
89 | install -p -c -m 0440 %{SOURCE1} $RPM_BUILD_ROOT/etc/sudoers |
---|
90 | |
---|
91 | mkdir -p $RPM_BUILD_ROOT/etc/pam.d |
---|
92 | cat > $RPM_BUILD_ROOT/etc/pam.d/sudo << EOF |
---|
93 | #%PAM-1.0 |
---|
94 | auth include system-auth |
---|
95 | account include system-auth |
---|
96 | password include system-auth |
---|
97 | session optional pam_keyinit.so revoke |
---|
98 | session required pam_limits.so |
---|
99 | EOF |
---|
100 | |
---|
101 | cat > $RPM_BUILD_ROOT/etc/pam.d/sudo-i << EOF |
---|
102 | #%PAM-1.0 |
---|
103 | auth include sudo |
---|
104 | account include sudo |
---|
105 | password include sudo |
---|
106 | session optional pam_keyinit.so force revoke |
---|
107 | session required pam_limits.so |
---|
108 | EOF |
---|
109 | |
---|
110 | |
---|
111 | %clean |
---|
112 | rm -rf $RPM_BUILD_ROOT |
---|
113 | |
---|
114 | %files |
---|
115 | %defattr(-,root,root) |
---|
116 | %doc HISTORY LICENSE README* TROUBLESHOOTING UPGRADE |
---|
117 | %doc ChangeLog |
---|
118 | %doc *.pod schema.* sudoers2ldif sample.* |
---|
119 | %attr(0440,root,root) %config(noreplace) /etc/sudoers |
---|
120 | %config(noreplace) /etc/pam.d/sudo |
---|
121 | %config(noreplace) /etc/pam.d/sudo-i |
---|
122 | %dir /var/run/sudo |
---|
123 | %attr(0750,root,root) %dir /var/log/sudo-io |
---|
124 | %attr(4111,root,root) %{_bindir}/sudo |
---|
125 | %attr(4111,root,root) %{_bindir}/sudoedit |
---|
126 | %attr(0111,root,root) %{_bindir}/sudoreplay |
---|
127 | %attr(0755,root,root) %{_sbindir}/visudo |
---|
128 | %{_libexecdir}/sudo_noexec.* |
---|
129 | %{_mandir}/man5/sudoers*.5* |
---|
130 | %{_mandir}/man8/sudo.8* |
---|
131 | %{_mandir}/man8/sudoedit.8* |
---|
132 | %{_mandir}/man8/visudo.8* |
---|
133 | %{_mandir}/man8/sudoreplay.8* |
---|
134 | |
---|
135 | %post |
---|
136 | /bin/chmod 0440 /etc/sudoers || : |
---|
137 | |
---|
138 | %changelog |
---|
139 | * Wed Apr 23 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.10p8-1vl6 |
---|
140 | - new upstream release with security fix (CVE-2014-0106) |
---|
141 | - add BR: zlib-devel |
---|
142 | |
---|
143 | * Mon Mar 4 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.10p7-2vl6 |
---|
144 | - fix attribution of sudoreplay |
---|
145 | - add /var/log/sudo-io |
---|
146 | |
---|
147 | * Mon Mar 4 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.10p7-1vl6 |
---|
148 | - new upstream release with security fixes |
---|
149 | - drop old patches |
---|
150 | |
---|
151 | * Mon Mar 4 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.2p7-6 |
---|
152 | - add patch130 for fix CVE-2013-1775 (sudo -K) |
---|
153 | |
---|
154 | * Sat May 19 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.2p7-5 |
---|
155 | - add patch120 for fix CVE-2012-2337 (netmask match) |
---|
156 | |
---|
157 | * Fri Jun 03 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.2p7-4 |
---|
158 | - update sudoers |
---|
159 | - enable "%wheel ALL=(ALL) ALL" by default. |
---|
160 | |
---|
161 | * Thu Feb 10 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.2p7-3 |
---|
162 | - add patch110,111 for fix CVE-2011-0010 ("-g" option) |
---|
163 | |
---|
164 | * Wed Sep 8 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.2p7-2 |
---|
165 | - add Patch100 for fix CVE-2010-2956 (sudo Runas) |
---|
166 | - add _smp_mflags flag into make section |
---|
167 | - fix doc filelist (no longer exist BUGS, CHANGSE) |
---|
168 | |
---|
169 | * Sun Jun 20 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.2p7-1 |
---|
170 | - new upstream release with security fix (CVE-2010-1646) |
---|
171 | - change specfile name (-vl) |
---|
172 | |
---|
173 | * Sun Apr 25 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.2p6-1 |
---|
174 | - new upstream release with security fix (CVE-2010-1163) |
---|
175 | - add sudoers.ldap.5 into files section |
---|
176 | |
---|
177 | * Wed Feb 24 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.2p4-1 |
---|
178 | - new upstream release with security fix (CVE-2010-0426) |
---|
179 | - update Patch3 |
---|
180 | |
---|
181 | * Wed Jul 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.2-1 |
---|
182 | - new upstream release |
---|
183 | |
---|
184 | * Wed Jun 17 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.1-1 |
---|
185 | - new upstream release |
---|
186 | - update patches |
---|
187 | - disable "Defaults requiretty" |
---|
188 | |
---|
189 | * Fri Feb 13 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.6.9p20-2 |
---|
190 | - rebuilt with openldap-2.4.11 |
---|
191 | |
---|
192 | * Thu Feb 12 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.6.9p20-1 |
---|
193 | - new upstream release with security fix (CVE 2009-0034) |
---|
194 | |
---|
195 | * Sat Aug 16 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.9p17-1 |
---|
196 | - new upstream release |
---|
197 | - merge some changes from fedoraproject |
---|
198 | - include [sudo] in password prompt |
---|
199 | - compiled with secure path |
---|
200 | - also use getgrouplist() to determine group membership |
---|
201 | - add sudoers file |
---|
202 | - add command aliases, default environment config |
---|
203 | - build with openldap |
---|
204 | |
---|
205 | * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.6.8p12-1vl5 |
---|
206 | - applied new versioning policy, spec in utf-8 |
---|
207 | |
---|
208 | * Fri May 19 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.8p12-0vl2 |
---|
209 | - change PAM configuration to use system-auth |
---|
210 | - add --with-ignore-dot, --with-editor and --with-env-editor to |
---|
211 | configure option. |
---|
212 | |
---|
213 | * Mon Jan 23 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.6.8p12-0vl1 |
---|
214 | - new upstream release (included security fix) |
---|
215 | - add patch1 for fix CVE-2006-0151 |
---|
216 | |
---|
217 | * Mon May 09 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.8p8-0vl1 |
---|
218 | - new upstream release |
---|
219 | - use macros |
---|
220 | - build with pam |
---|
221 | |
---|
222 | * Wed Jan 19 2005 IWAI, Masaharu <iwai@alib.jp> 1.6.8p6-0vl1 |
---|
223 | - new upstream release |
---|
224 | |
---|
225 | * Sun Oct 10 2004 IWAI, Masaharu <iwai@alib.jp> 1.6.8p1-0vl1 |
---|
226 | - SECURITY FIX: new upstream release |
---|
227 | - update rpmnonroot.patch ( Patch0 ) |
---|
228 | - add new man page: sudoedit(8) |
---|
229 | |
---|
230 | * Wed Sep 1 2004 IWAI, Masaharu <iwai@alib.jp> 1.6.8-0vl1 |
---|
231 | - new upstream release |
---|
232 | - update rpmnonroot.patch ( Patch0 ) |
---|
233 | - change Copyrigh tag to License tag |
---|
234 | - update License |
---|
235 | - update URL and Source0: official web site moved. |
---|
236 | - new files: %%{_bindir}/sudoedit and %%{_libexecdir}/sudo_noexec.* |
---|
237 | |
---|
238 | * Mon Apr 14 2003 IWAI Masaharu <iwai@alib.jp> 1.6.7p3-0vl1 |
---|
239 | - upstream release |
---|
240 | |
---|
241 | * Wed May 08 2002 Satoshi MACHINO <machino@vinelinux.org> 1.6.6-0vl3 |
---|
242 | - fixed changelog |
---|
243 | -- don't expand macros in changelog ;P |
---|
244 | |
---|
245 | * Wed May 01 2002 Satoshi MACHINO <machino@vinelinux.org> 1.6.6-0vl2 |
---|
246 | - changed to use configure in build section |
---|
247 | (can't build on sparc) |
---|
248 | |
---|
249 | * Fri Apr 26 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.6-0vl1 |
---|
250 | - upstream release |
---|
251 | - fix security hole : buffer over flow |
---|
252 | |
---|
253 | * Thu Jan 24 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.6.5p2-0vl1 |
---|
254 | - upstream release |
---|
255 | - updated sudo.rpmnonroot.diff |
---|
256 | |
---|
257 | * Fri Jan 18 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.6.5p1-0vl1 |
---|
258 | - upstream release |
---|
259 | - added configure script option '--disable-root-mailer' |
---|
260 | |
---|
261 | * Tue Jan 15 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.6.4p1-0vl1 |
---|
262 | - upstream release |
---|
263 | - eliminated FAQ from %doc |
---|
264 | |
---|
265 | * Mon Jan 14 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.6.4-0vl1 |
---|
266 | - upstream release |
---|
267 | - added noreplace flag (%{_sysconfdir}/sudoers file is not replaced) |
---|
268 | - updated sudo.rpmnonroot.diff |
---|
269 | |
---|
270 | * Wed May 09 2001 <sagami@vinelinux.org> |
---|
271 | - 1.6.3p7-0vl2: follow up 1.6.2p6-0.6vl1 |
---|
272 | |
---|
273 | * Fri Mar 02 2001 sagami@vinelinux.org |
---|
274 | - 1.6.3p7-0vl1 |
---|
275 | - use better macros |
---|
276 | |
---|
277 | * Tue Mar 1 2001 Kunio Murasawa <murasawa@marineroad.com> |
---|
278 | - 1.6.3p6-0vl1 |
---|
279 | - changed sudo.rpmnonroot.diff for 1.6.3p6 |
---|
280 | |
---|
281 | * Tue Sep 19 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
282 | - 1.6.1-2vl5 |
---|
283 | - patch -p1 -> patch -p0 |
---|
284 | |
---|
285 | * Mon Sep 18 2000 MATSUMOTO Shoji <shom@vinelinux.org> |
---|
286 | - 1.6.1-2vl4 |
---|
287 | - fix uid/gid to root.root |
---|
288 | - add sudo.rpmnonroot.diff to built by non-root users |
---|
289 | |
---|
290 | * Tue Sep 12 2000 Jun Nishii <jun@vinelinux.org> |
---|
291 | - 1.6.1-2vl3 |
---|
292 | - fix attr |
---|
293 | |
---|
294 | * Sun Sep 10 2000 Jun Nishii <jun@vinelinux.org> |
---|
295 | - 1.6.1-2vl2 |
---|
296 | - enable to build by non-root useres |
---|
297 | |
---|
298 | * Fri Sep 08 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
299 | - 1.6.1-2vl1 |
---|
300 | - modified %files section to handle compressed man page(s) |
---|
301 | |
---|
302 | * Fri Jan 7 2000 Jun Nishii <jun@vinelinux.org> |
---|
303 | - change group |
---|
304 | |
---|
305 | * Thu Dec 30 1999 Jun Nishii <jun@vinelinux.org> |
---|
306 | - version 1.6.1 |
---|
307 | - build for Vine Linux 2.0 |
---|
308 | |
---|
309 | * Fri May 14 1999 Takeda Eiji <keda@flatout.org> |
---|
310 | - sudo reads $BuildRoot%{_sysconfdir}/sudoers. Make change to read /etc/sudoers. |
---|
311 | |
---|
312 | * Wed Apr 21 1999 Hiroto Watanabe <watanabe@cij.co.jp> |
---|
313 | - Initial Release |
---|
314 | |
---|