Compare commits
187 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
c87ed81c2c | ||
|
09904cbd56 | ||
|
5fa93ec5e0 | ||
|
3bf1f5a44f | ||
|
4ffd39d553 | ||
|
a228e53a4b | ||
|
a04c11370c | ||
|
d65ce0b32c | ||
|
260ccc24c5 | ||
|
c96992b25e | ||
|
dd1f0e5a82 | ||
|
f64c455630 | ||
|
1f18765a68 | ||
|
6c5649c0b6 | ||
|
6578411a87 | ||
|
3b965f951d | ||
|
c409cb5073 | ||
|
f3b1a65177 | ||
|
5abc3df64a | ||
|
f9a78e1def | ||
|
f55af7b31a | ||
|
93b5e7b623 | ||
|
b3ca809df8 | ||
|
2abaf6eb96 | ||
|
f9f53d46a2 | ||
|
31097faf0c | ||
|
e7be6ae5f5 | ||
|
cca6bc092d | ||
|
e86e462be5 | ||
|
b50e3f3a07 | ||
|
f00635cf14 | ||
|
985b3cb330 | ||
|
05489e2334 | ||
|
2002e7d438 | ||
|
8abfa74392 | ||
|
1c853c1f4b | ||
|
b188598d35 | ||
|
08aad7c190 | ||
|
5977e189d6 | ||
|
347549f079 | ||
|
c48435329a | ||
|
b441300c92 | ||
|
b0e9e3bcb8 | ||
|
16f25ffc54 | ||
|
5aecaa99fe | ||
|
f991f6faa9 | ||
|
98af691bc7 | ||
|
ed9b0d3627 | ||
|
acc3919c15 | ||
|
e998a685f7 | ||
|
098671aa4d | ||
|
fe0e3c7437 | ||
|
7c81cc769f | ||
|
580f0fece0 | ||
|
9a75633915 | ||
|
f1bf9845c3 | ||
|
20ae04497c | ||
|
2831759869 | ||
|
523a7c4f54 | ||
|
086a8aa5c9 | ||
|
028de3ee58 | ||
|
b3e437baf2 | ||
|
7c4fd7f42a | ||
|
80deb77249 | ||
|
a61dbe7cc6 | ||
|
2cde2b2546 | ||
|
42ab31a080 | ||
|
707076abd5 | ||
|
83243ee93c | ||
|
4ac61ab4ac | ||
|
4820f4132a | ||
|
a1ba076eea | ||
|
a495296401 | ||
|
c0267df5f2 | ||
|
7748eaf530 | ||
|
351fc04cd1 | ||
|
5ecbe52e91 | ||
|
6469bd527b | ||
|
8645c3a8bd | ||
|
11d74871f2 | ||
|
7152f9510d | ||
|
ffe5e68263 | ||
|
bdd2c5116b | ||
|
a3884eaf3e | ||
|
59614e3019 | ||
|
bfac7fc8c6 | ||
|
052fa90bc6 | ||
|
5940ccada5 | ||
|
4ada5eaed7 | ||
|
437d842852 | ||
|
c18880bcb1 | ||
|
ba7c336b4c | ||
|
c96e764d51 | ||
|
3d6431f7c5 | ||
|
4c91ee804e | ||
|
279eda57a9 | ||
|
d3224d47ec | ||
|
3d667f8a82 | ||
|
8039d29dfb | ||
|
530b947e7b | ||
|
58bac092a5 | ||
|
55938ef1c2 | ||
|
8db7d85a0e | ||
|
4420515181 | ||
|
3251a896f8 | ||
|
95b12b7aa0 | ||
|
a56a94947c | ||
|
401fd81490 | ||
|
8aba0e5c79 | ||
|
208b062ff6 | ||
|
2cbb58aee9 | ||
|
93789c7721 | ||
|
558fdf8110 | ||
|
8aba564a5f | ||
|
d8ee2107f1 | ||
|
f898c96467 | ||
|
c186315fe8 | ||
|
cdab8b4a76 | ||
|
17b923cc1e | ||
|
77887c051b | ||
|
4efad38df3 | ||
|
04f1d57f74 | ||
|
07ed6e64f8 | ||
|
d3eae21d69 | ||
|
3d940d4e83 | ||
|
b570e8a4eb | ||
|
c55c42ae5d | ||
|
b106becc25 | ||
|
ef494ba0d6 | ||
|
e91f50c406 | ||
|
de66720388 | ||
|
2afb30fac6 | ||
|
02e8b22b8e | ||
|
77818367d0 | ||
|
e466e3cc2f | ||
|
c67f1a42d8 | ||
|
ae201aa504 | ||
|
3f8e6b01a1 | ||
|
c3fa85dd81 | ||
|
9f10eae074 | ||
|
c9e662019e | ||
|
9da9be552a | ||
|
6af60835d3 | ||
|
1a7e2063fd | ||
|
1dd1b6a182 | ||
|
298e4e50ad | ||
|
185c052093 | ||
|
bfcb468173 | ||
|
6278f8fb46 | ||
|
781e4d0274 | ||
|
b92fbbf0f8 | ||
|
ee6d69b122 | ||
|
fa67a47381 | ||
|
c9a44d115f | ||
|
05c81d18b2 | ||
|
0b35981e89 | ||
|
3fe05ecbfc | ||
|
eab90e03d7 | ||
|
0d11c1c42f | ||
|
8b794a5fc5 | ||
|
aa5805ac25 | ||
|
f6a3ca6784 | ||
|
55f81a38e7 | ||
|
8e74662110 | ||
|
d6ff12d6dc | ||
|
34a74aadf6 | ||
|
89d447eb6c | ||
|
f789f0d9fc | ||
|
d4fa6b5537 | ||
|
b079edfd15 | ||
|
71fd605ed8 | ||
|
8d539d225f | ||
|
5de818c896 | ||
|
ab1e5c59d6 | ||
|
361265db38 | ||
|
9165bd23fd | ||
|
1fc81bb819 | ||
|
4be87e9faa | ||
|
9016a84fba | ||
|
594dffa0d4 | ||
|
b06e73cfce | ||
|
5c303e7460 | ||
|
299715637f | ||
|
a8e3fb405f | ||
|
ec1e4fccb3 | ||
|
f708bc4f81 | ||
|
d9d58da0e7 |
59
.gitignore
vendored
59
.gitignore
vendored
@ -31,3 +31,62 @@
|
||||
/util-linux-2.24.tar.xz
|
||||
/util-linux-2.24.1.tar.xz
|
||||
/util-linux-2.24.2.tar.xz
|
||||
/util-linux-2.25-rc1.tar.xz
|
||||
/util-linux-2.25-rc2.tar.xz
|
||||
/util-linux-2.25.tar.xz
|
||||
/util-linux-2.25.1-rc1.tar.xz
|
||||
/util-linux-2.25.1.tar.xz
|
||||
/util-linux-2.25.2.tar.xz
|
||||
/util-linux-2.26-rc1.tar.xz
|
||||
/util-linux-2.26-rc2.tar.xz
|
||||
/util-linux-2.26.tar.xz
|
||||
/util-linux-2.26.2.tar.xz
|
||||
/util-linux-2.27-rc1.tar.xz
|
||||
/util-linux-2.27-rc2.tar.xz
|
||||
/util-linux-2.27.tar.xz
|
||||
/util-linux-2.27.1.tar.xz
|
||||
/util-linux-2.28-rc1.tar.xz
|
||||
/util-linux-2.28-rc2.tar.xz
|
||||
/util-linux-2.28.tar.xz
|
||||
/util-linux-2.28.1.tar.xz
|
||||
/util-linux-2.28.2.tar.xz
|
||||
/util-linux-2.29-rc1.tar.xz
|
||||
/util-linux-2.29-rc2.tar.xz
|
||||
/util-linux-2.29.tar.xz
|
||||
/util-linux-2.29.1.tar.xz
|
||||
/util-linux-2.29.2.tar.xz
|
||||
/util-linux-2.30-rc1.tar.xz
|
||||
/util-linux-2.30.tar.xz
|
||||
/util-linux-2.30.1.tar.xz
|
||||
/util-linux-2.30.2.tar.xz
|
||||
/util-linux-2.31-rc1.tar.xz
|
||||
/util-linux-2.31-rc2.tar.xz
|
||||
/util-linux-2.31.tar.xz
|
||||
/util-linux-2.32-rc1.tar.xz
|
||||
/util-linux-2.32.tar.xz
|
||||
/util-linux-2.32.1.tar.xz
|
||||
/util-linux-2.33-rc2.tar.xz
|
||||
/util-linux-2.33.1.tar.xz
|
||||
/util-linux-2.33.2.tar.xz
|
||||
/util-linux-2.34-rc1.tar.xz
|
||||
/util-linux-2.34-rc2.tar.xz
|
||||
/util-linux-2.34.tar.xz
|
||||
/util-linux-2.35-rc1.tar.xz
|
||||
/util-linux-2.35-rc1-20-63f8.tar.xz
|
||||
/util-linux-2.35-rc2.tar.xz
|
||||
/util-linux-2.35.tar.xz
|
||||
/util-linux-2.35.1.tar.xz
|
||||
/util-linux-2.35.2.tar.xz
|
||||
/util-linux-2.36.tar.xz
|
||||
/util-linux-2.36.1.tar.xz
|
||||
/util-linux-2.36.2.tar.xz
|
||||
/util-linux-2.37-rc2.tar.xz
|
||||
/util-linux-2.37.tar.xz
|
||||
/util-linux-2.37.2.tar.xz
|
||||
/util-linux-2.38-rc1.tar.xz
|
||||
/util-linux-2.38-rc3.tar.xz
|
||||
/util-linux-2.38.tar.xz
|
||||
/util-linux-2.38.1.tar.xz
|
||||
/util-linux-2.39-rc1.tar.xz
|
||||
/util-linux-2.39-rc2.tar.xz
|
||||
/util-linux-2.39-rc3.tar.xz
|
||||
|
@ -1,11 +0,0 @@
|
||||
diff -up util-linux-2.23.2/login-utils/login.c.kzak util-linux-2.23.2/login-utils/login.c
|
||||
--- util-linux-2.23.2/login-utils/login.c.kzak 2013-07-30 10:39:26.222738397 +0200
|
||||
+++ util-linux-2.23.2/login-utils/login.c 2013-09-09 09:01:39.923225757 +0200
|
||||
@@ -502,7 +502,7 @@ static void log_lastlog(struct login_con
|
||||
if (!cxt->pwd)
|
||||
return;
|
||||
|
||||
- fd = open(_PATH_LASTLOG, O_RDWR, 0);
|
||||
+ fd = open(_PATH_LASTLOG, O_RDWR | O_CREAT, 0);
|
||||
if (fd < 0)
|
||||
return;
|
12
STAGE1-util-linux
Normal file
12
STAGE1-util-linux
Normal file
@ -0,0 +1,12 @@
|
||||
srpm util-linux
|
||||
mcd $BUILDDIR/$1
|
||||
cat <<EOF > config.cache
|
||||
ax_cv_have_tls=yes
|
||||
scanf_cv_alloc_modifier=ms
|
||||
EOF
|
||||
$SRC/${1}-*/configure $TCONFIGARGS --without-ncurses --without-tinfo \
|
||||
--prefix=/usr --libexecdir=/usr/lib${SUFFIX} --libdir=/usr/lib${SUFFIX} \
|
||||
--disable-wall --cache-file=config.cache --without-python --without-systemd
|
||||
notparallel
|
||||
make $J V=1
|
||||
make $J install DESTDIR=${ROOTFS}
|
13
login-default-motd-file.patch
Normal file
13
login-default-motd-file.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/include/pathnames.h b/include/pathnames.h
|
||||
index 3845d4c33..fac3a0783 100644
|
||||
--- a/include/pathnames.h
|
||||
+++ b/include/pathnames.h
|
||||
@@ -41,7 +41,7 @@
|
||||
#ifndef _PATH_MAILDIR
|
||||
# define _PATH_MAILDIR "/var/spool/mail"
|
||||
#endif
|
||||
-#define _PATH_MOTDFILE "/usr/share/misc/motd:/run/motd:/etc/motd"
|
||||
+#define _PATH_MOTDFILE "/usr/share/misc/motd:/run/motd:/run/motd.d:/etc/motd:/etc/motd.d"
|
||||
#ifndef _PATH_NOLOGIN
|
||||
# define _PATH_NOLOGIN "/etc/nologin"
|
||||
#endif
|
12
login-lastlog-create.patch
Normal file
12
login-lastlog-create.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up util-linux-2.36/login-utils/login.c.kzak util-linux-2.36/login-utils/login.c
|
||||
--- util-linux-2.36/login-utils/login.c.kzak 2020-07-23 14:13:26.777030764 +0200
|
||||
+++ util-linux-2.36/login-utils/login.c 2020-07-23 14:11:22.793686983 +0200
|
||||
@@ -585,7 +585,7 @@ static void log_lastlog(struct login_con
|
||||
sa.sa_handler = SIG_IGN;
|
||||
sigaction(SIGXFSZ, &sa, &oldsa_xfsz);
|
||||
|
||||
- fd = open(_PATH_LASTLOG, O_RDWR, 0);
|
||||
+ fd = open(_PATH_LASTLOG, O_RDWR | O_CREAT, 0);
|
||||
if (fd < 0)
|
||||
goto done;
|
||||
offset = cxt->pwd->pw_uid * sizeof(ll);
|
2
sources
2
sources
@ -1 +1 @@
|
||||
3f191727a0d28f7204b755cf1b6ea0aa util-linux-2.24.2.tar.xz
|
||||
SHA512 (util-linux-2.39-rc3.tar.xz) = 8a93d32a5ceb38d50a4b2c8bfa48bcab7ec9b758c89b5a1a4f7fd74558dce37385bd7ea203345148d4389de4ea60ec42058f9d7889a8075d3e616773d085427e
|
||||
|
13
tests/tests.yml
Normal file
13
tests/tests.yml
Normal file
@ -0,0 +1,13 @@
|
||||
# Test which run in classic and docker environemnt
|
||||
- hosts: localhost
|
||||
tags:
|
||||
- classic
|
||||
- container
|
||||
- atomic
|
||||
roles:
|
||||
- role: standard-test-beakerlib
|
||||
tests:
|
||||
- various
|
||||
required_packages:
|
||||
- util-linux
|
||||
- util-linux-user
|
64
tests/various/Makefile
Normal file
64
tests/various/Makefile
Normal file
@ -0,0 +1,64 @@
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/util-linux/various
|
||||
# Description: This test groups small sanity and regression tests for util-linux
|
||||
# Author: Miroslav Vadkerti <mvadkert@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2013 Red Hat, Inc. All rights reserved.
|
||||
#
|
||||
# This copyrighted material is made available to anyone wishing
|
||||
# to use, modify, copy, or redistribute it subject to the terms
|
||||
# and conditions of the GNU General Public License version 2.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this program; if not, write to the Free
|
||||
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
# Boston, MA 02110-1301, USA.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
export TEST=/CoreOS/util-linux/Sanity/various
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include /usr/share/rhts/lib/rhts-make.include
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Miroslav Vadkerti <mvadkert@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: This test groups small sanity and regression tests for util-linux" >> $(METADATA)
|
||||
@echo "Type: Sanity" >> $(METADATA)
|
||||
@echo "TestTime: 10m" >> $(METADATA)
|
||||
@echo "RunFor: util-linux" >> $(METADATA)
|
||||
@echo "Requires: util-linux util-linux-user" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Releases: -RHEL3 -RHEL4 -RHEL5Server -RHEL5Client -RHEL6" >> $(METADATA)
|
||||
|
||||
rhts-lint $(METADATA)
|
3
tests/various/PURPOSE
Normal file
3
tests/various/PURPOSE
Normal file
@ -0,0 +1,3 @@
|
||||
PURPOSE of /CoreOS/util-linux/various
|
||||
Description: This test groups small sanity and regression tests for util-linux
|
||||
Author: Miroslav Vadkerti <mvadkert@redhat.com>
|
52
tests/various/runtest.sh
Executable file
52
tests/various/runtest.sh
Executable file
@ -0,0 +1,52 @@
|
||||
#!/bin/bash
|
||||
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/util-linux/various
|
||||
# Description: This test groups small sanity and regression tests for util-linux
|
||||
# Author: Miroslav Vadkerti <mvadkert@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2013 Red Hat, Inc. All rights reserved.
|
||||
#
|
||||
# This copyrighted material is made available to anyone wishing
|
||||
# to use, modify, copy, or redistribute it subject to the terms
|
||||
# and conditions of the GNU General Public License version 2.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this program; if not, write to the Free
|
||||
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
# Boston, MA 02110-1301, USA.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
# Include Beaker environment
|
||||
#. /usr/bin/rhts-environment.sh || exit 1
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PACKAGE="util-linux"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "return code of chfn should be always 1 in case failure"
|
||||
rlRun "chfn -f a:b" 1
|
||||
rlRun "chfn -o a:b" 1
|
||||
rlRun "chfn -p a:b" 1
|
||||
rlRun "chfn -h a:b" 1
|
||||
rlRun "chfn -x a:b" 1
|
||||
rlRun "chfn -f a -o b -p c -h d unknown-user" 1
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
@ -1,8 +0,0 @@
|
||||
#
|
||||
# Enter raw device bindings here.
|
||||
#
|
||||
# An example would be:
|
||||
# ACTION=="add", KERNEL=="sda", RUN+="/usr/bin/raw /dev/raw/raw1 %N"
|
||||
# to bind /dev/raw/raw1 to /dev/sda, or
|
||||
# ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="1", RUN+="/usr/bin/raw /dev/raw/raw2 %M %m"
|
||||
# to bind /dev/raw/raw2 to the device with major 8, minor 1.
|
@ -1,5 +1,4 @@
|
||||
#%PAM-1.0
|
||||
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
|
||||
auth substack system-auth
|
||||
auth include postlogin
|
||||
account required pam_nologin.so
|
||||
@ -8,7 +7,6 @@ password include system-auth
|
||||
# pam_selinux.so close should be the first session rule
|
||||
session required pam_selinux.so close
|
||||
session required pam_loginuid.so
|
||||
session optional pam_console.so
|
||||
# pam_selinux.so open should only be followed by sessions to be executed in the user context
|
||||
session required pam_selinux.so open
|
||||
session required pam_namespace.so
|
||||
|
@ -1,5 +1,4 @@
|
||||
#%PAM-1.0
|
||||
auth required pam_securetty.so
|
||||
auth substack password-auth
|
||||
auth include postlogin
|
||||
account required pam_nologin.so
|
||||
|
1147
util-linux.spec
1147
util-linux.spec
File diff suppressed because it is too large
Load Diff
1
uuidd-tmpfiles.conf
Normal file
1
uuidd-tmpfiles.conf
Normal file
@ -0,0 +1 @@
|
||||
d /run/uuidd 2775 uuidd uuidd
|
Loading…
Reference in New Issue
Block a user