summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tools: checkmans.sh add statsJ William Piggott2015-01-131-11/+22
| | | | | | | | Add test results statistics. Fix-up 'KNOWN_REPEATS'. Version bump. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* tools: checkmans.sh clean up 'let'J William Piggott2015-01-131-10/+4Star
| | | | | | Clean up 'let' issues and loop iteration. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* tools: checkman.sh portability lexgrogJ William Piggott2015-01-131-5/+21
| | | | | | | | | checkman.sh depends upon the man-db package: Add using grog when lexgrog not installed. /dev/null some troff noise. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* tools: checkman.sh portabilityJ William Piggott2015-01-131-14/+12Star
| | | | | | | | | | | | | checkman.sh fails if 'git' or 'lib' are anywhere in the tested file's path: Change to using relative paths. Improve the 'find' command call. checkman.sh depends upon the man-db package: Remove all instants of the man command and use troff directly to improve portability. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* build-sys: add sfdisk.staticKarel Zak2015-01-131-0/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update build testsKarel Zak2015-01-1318-102/+132
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: exclude also i386 from CMOS auto-probingKarel Zak2015-01-131-3/+3
|
* libfdisk: add version.cKarel Zak2015-01-138-3/+165
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: fix some typosKarel Zak2015-01-133-8/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix compiler warnings [-Wpointer-sign]Karel Zak2015-01-131-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: (docs) improve section descriptionsKarel Zak2015-01-136-6/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: (docs) add monitor exampleKarel Zak2015-01-131-0/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update API docs yearsKarel Zak2015-01-133-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: cleanup gtk-docs warningsKarel Zak2015-01-135-9/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: cleanup gtk-docs warningsKarel Zak2015-01-131-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: cleanup gtk-docs warningsKarel Zak2015-01-136-36/+70
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* raw: fix raw queryKarel Zak2015-01-131-1/+1
| | | | | | | Bug introduced by commit cd121363. References: https://bugzilla.redhat.com/show_bug.cgi?id=1181444 Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: don't check CMOS automatically on x86_64Karel Zak2015-01-131-0/+4
| | | | | | | We have enabled CMOS also for x86_64, but it should be available only if --directisa is explicitly specified. Signed-off-by: Karel Zak <kzak@redhat.com>
* unshare: add some examplesLubomir Rintel2015-01-121-0/+14
| | | | | | | ...and fix one typo. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: man regressionJWP2015-01-121-1/+1
| | | | | | Fixes merge for commit 2ed1d70 that clobbered commit 98ac774 Signed-off-by: J William Piggott <elseifthen@gmx.com>
* setarch: cleanup options usageKarel Zak2015-01-121-28/+38
| | | | | | | | | * call --help, --verbose and --list from one place only * add 'archwrapper' variable to detect when called by symplink * make --list available only got setchar(8) (but no for symlinks) Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: mention that setarch may not be able to set all listed architecturesBenno Schulenberg2015-01-121-4/+5
| | | | | | | [[kzak@redhat.com: - use minus in option name\ Signed-off-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* setarch: differentiate between "unrecognized" and "cannot set"Benno Schulenberg2015-01-121-1/+1
| | | | | | | | | When the provided string does not match any architecture that setarch knows about, the response stays "Unrecognized architecture", but when trying to set the specified architecture does not have any effect, then respond with "Kernel cannot set architecture to...". Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* partx: don't use "hard drive" in man pagesKarel Zak2015-01-123-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: make the wording of the partx man page a bit more preciseBenno Schulenberg2015-01-121-16/+19
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* partx: simplify a --verbose progress messageBenno Schulenberg2015-01-121-1/+1
| | | | | Reported-by: Antonio Ceballos <aceballos@gmail.com> Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: remove obsolete and unneeded comments from man-page filesBenno Schulenberg2015-01-1243-99/+20Star
| | | | | | | Transform some of them into copyright lines. Also fix three header lines and snip some trailing whitespace. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: sync the docstring of addpart, delpart and resizepart to the man pageBenno Schulenberg2015-01-123-29/+25Star
| | | | | | Also tweak the wording of those man pages a bit. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* partx: add --update to ul_excl_twq listKarel Zak2015-01-122-4/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) cleanup header size usageKarel Zak2015-01-092-8/+27
| | | | | | | | | | | | | | | | | | Kay reported that Windows 8.1 installed does not recognize GPT created by libfdisk, but parted works as expected. It seems (according to the header hexdump) that the problem is HeaderSize GPT field where libfdisk uses 512 (header + reserved area), but parted uses 92. The both is pretty valid according to the current EFI standard, but 92 is probably more backwardly compatible. I also found places in code where libfdisk gpt driver is inconsistent and uses sometimes all sector and simetimes sizeof(gpt_header) only. The right solution is to read all sector (into zeroized memory) and later write again all sector to the device. Reported-by: Kay Sievers <kay@vrfy.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'master' of https://github.com/pali/util-linuxKarel Zak2015-01-0910-0/+45
|\ | | | | | | | | | | | | | | | | * 'master' of https://github.com/pali/util-linux: tests: Add UDF hdd image created by NetBSD newfs_udf (from UDFclient 0.7.7) tests: Add UDF hdd image created by NetBSD newfs_udf (from UDFclient 0.7.5) tests: Add UDF hdd image created by Linux mkudffs with custom params tests: Add UDF hdd image created by Linux mkudffs tests: Add UDF hdd image created by Windows 7
| * tests: Add UDF hdd image created by NetBSD newfs_udf (from UDFclient 0.7.7)Pali Rohár2015-01-082-0/+9
| | | | | | | | | | | | | | $ dd if=/dev/zero of=/tmp/test bs=1M count=10 $ newfs_udf -L discname /tmp/test Version from UDFclient 0.7.7 generate default Volume set identifier correctly.
| * tests: Add UDF hdd image created by NetBSD newfs_udf (from UDFclient 0.7.5)Pali Rohár2015-01-082-0/+9
| | | | | | | | | | | | | | | | $ dd if=/dev/zero of=/tmp/test bs=1M count=10 $ newfs_udf -L discname /tmp/test Version from UDFclient 0.7.5 does not generate default Volume set identifier according to OSTA UDF specification. But it is used so for test is usefull.
| * tests: Add UDF hdd image created by Linux mkudffs with custom paramsPali Rohár2015-01-082-0/+9
| | | | | | | | | | | | | | | | | | | | $ dd if=/dev/zero of=/tmp/test bs=1M count=10 $ mkudffs -b 512 --lvid=Label --vid=Label --vsid="Volume set identifier" /tmp/test When calling mkudffs with --vsid param there is bug which cause that garbage from application stack is copied into Volume set identifier after 8th character. Characters 1 -- 16 are used in libblkid for generating UUID, so this is perfect test example that everything is working!
| * tests: Add UDF hdd image created by Linux mkudffsPali Rohár2015-01-082-0/+9
| | | | | | | | | | $ dd if=/dev/zero of=/tmp/test bs=1M count=10 $ mkudffs -b 512 /tmp/test
| * tests: Add UDF hdd image created by Windows 7Pali Rohár2015-01-082-0/+9
| |
* | hwclock: man page 'Since v2.26' notesJWP2015-01-091-19/+5Star
| | | | | | | | | | | | | | | | Clean up the 'Since v2.26' man page notes. They were redundant of information already in the manual, and became too verbose. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* | hwclock: update man page for v2.26 rcJWP2015-01-091-382/+752
| | | | | | | | | | | | | | | | | | Authored new section: DATE-TIME CONFIGURATION. Subsections: Keeping Time..., LOCAL vs UTC, POSIX vs 'RIGHT'. Errata and drop outdated language. Updates for v2.26 Signed-off-by: J William Piggott <elseifthen@gmx.com>
* | hwclock: Incorrect UTC defaultsJWP2015-01-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hwclock's default timescale was changed to UTC in: commit 7894bf0f08740f75610990a2ba76af7a7cbce61e Date: Mon Feb 21 13:27:07 2011 +0000 This change was incomplete. With no /etc/adjtime file the current behavior is: hwclock --utc --adjust #Creates a UTC file. hwclock --localtime --adjust #File is not created. That is the opposite of what UTC default should do. With this patch the behavior is: hwclock --utc --adjust #File is not created. hwclock --localtime --adjust #Creates a LOCAL file. 'Creates a xxxx file' means: An /etc/adjtime file is created with zero for all parameters except the Hardware Clock's timescale field, which is set to the value indicated by xxxx. The second item missed in the patch was a test in the save_adjtime() function that defaults to LOCAL. Theoretically we cannot get to the save function without having a value set for adjtime.local_utc, but the test is there so it needs be correct. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* | hwclock: enable --directisa for x86_64JWP2015-01-091-4/+5
| | | | | | | | | | | | | | Currently only x86 and Alpha can use --directisa. This patch allows x86_64 machines to use it as well. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* | nsenter: add --preserve-credentials and cleanup setgroups() usageKarel Zak2015-01-092-6/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | The new option --preserve-credentials completely disables all operations related to UIGs and GIDs. The patch also calls setgroups() before we enter user namespace (so root can always clear their groups) and after we enter user namespace (to detect /proc/self/setgroups "deny"). If both fail then nsenter complains. Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* | nsenter: keep semantic consistentKarel Zak2015-01-091-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current nseneter behavior is inconsistent and depends on way how namespace is specified on command line # nsenter --user vs. # nseneter --user=filename if the namespace is specified by <filename> than nsenter does not do additinal setting and actions (e.g. does not call setgroups, setuid). This is bug. Signed-off-by: Karel Zak <kzak@redhat.com>
* | unshare: add --setgroups=deny|allowKarel Zak2015-01-092-6/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Linux 3.19 the file /proc/self/setgroups controls setgroups(2) syscall usage in user namespaces. This patch provides command line knob for this feature. The new --setgroups does not automatically implies --user to avoid complexity, it's user's responsibility to use it in right context. The exception is --map-root-user which is mutually exclusive to --setgroups=allow. CC: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* | unshare: Fix --map-root-user to work on new kernelsEric W. Biederman2015-01-092-0/+20
|/ | | | | | | | | | | | | | | In rare cases droping groups with setgroups(0, NULL) is an operation that can grant a user additional privileges. User namespaces were allwoing that operation to unprivileged users and that had to be fixed. Update unshare --map-root-user to disable the setgroups operation before setting the gid_map. This is needed as after the security fix gid_map is restricted to privileged users unless setgroups has been disabled. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
* Merge branch '2015wk01' of https://github.com/kerolasa/lelux-utiliteetitKarel Zak2015-01-0810-55/+25Star
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '2015wk01' of https://github.com/kerolasa/lelux-utiliteetit: eject: add verbosity to cdrom door lock error libblkid: assume strtoull() is available ipcs: remove FIXME markup ul: remove unexplained TERM=lpr override look: remove dead code docs: make tools/checkmans.sh to pass without warnings build-sys: fix make checkincludes warnings docs: add howto-pull-request.txt docs: small improvements to howto-contribute.txt Conflicts: Documentation/howto-pull-request.txt
| * eject: add verbosity to cdrom door lock errorSami Kerola2015-01-071-8/+11
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * libblkid: assume strtoull() is availableSami Kerola2015-01-072-11/+3Star
| | | | | | | | | | | | | | | | | | The strtoull() is part of ISO/IEC 9899:1999 (aka C99) and the function has been happily used in prlimit(1) since 2011-10-19 without anyone complaining compatibility issues. Reference: http://pubs.opengroup.org/onlinepubs/009695399/functions/strtoul.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * ipcs: remove FIXME markupSami Kerola2015-01-071-4/+0Star
| | | | | | | | | | | | | | | | The ipc message q_qbytes information is not in /proc, and it is unlikely it will ever appear to there. Reference: https://lkml.org/lkml/2012/11/25/18 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * ul: remove unexplained TERM=lpr overrideSami Kerola2015-01-071-9/+0Star
| | | | | | | | | | | | | | The FIXME item has been in place since 2011-04-30, and the code has never made sense, so remove it. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * look: remove dead codeSami Kerola2015-01-071-10/+0Star
| | | | | | | | | | | | | | MAP_FILE is ignored compatibility flag. Reference: http://man7.org/linux/man-pages/man2/mmap.2.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>