]> git.ipfire.org Git - thirdparty/util-linux.git/blame - Documentation/TODO
build-sys: ncurses headers cleanup
[thirdparty/util-linux.git] / Documentation / TODO
CommitLineData
0cbeee27 1
b1883029 2 Note that items with (!) have high priority.
0cbeee27 3
52ac7065
KZ
4su/runuser
5----------
c3944744
KZ
6 - (!) implement pty container for all su/runuser session (something like
7 script(1)) to separate user from the original terminal (see CVE-2016-2779)
8
00dbc498
KZ
9- add functions strtime_short(), strtime_iso(), strtime_ctime(), ...
10
52ac7065
KZ
11cleanup lib/path.c:
12------------------
00dbc498
KZ
13 - always return rc from all functions
14 - introduce control struct and use openat() from top-level path
15 (e.g. top-level is /proc, etc)
16- use lib/path.c as low-level API for lib/sysfs.c
17 - now we duplicate code in functions like {path,sysfs}_read_u32, etc.
18 - it would be also nice to have a way how to redirect sysfs.c functions
19 to /sys snapshots (e.g. lsblk regression tests)
20
3421709a
KZ
21
22lscpu
23-----
24 - read cpuid and uname information from file if --sysroot is specified, then
25 we can prepare regression tests completely independent on hw and architecture.
26
5b7be990
KZ
27lsblk
28-----
e76e6747
KZ
29 - (!) add --tree to force tree output for operations like --sort where the
30 --list is enabled by default.
31
5b7be990
KZ
32 - currently it does not show mountpoint for all devices in btrfs RAID. It's because
33 /proc/#/mountinfo contains reference to the one device only. Maybe we can add some
34 btrfs specific code to provide a better output for FS based stacks. Not sure.
35 https://bugzilla.redhat.com/show_bug.cgi?id=1084453
36
0e4254f4
KZ
37cfdisk
38------
4e3b32eb
KZ
39 - (!) add auto-sort support (sort partitions automatically) and
40 --sort={auto,never,always} command line option. This feature should be
41 enabled by default for logical partitions if we created all container (extended
42 partition) in the current session.
43
44
04c107eb
KZ
45agetty
46-----
47 - support default issue (/etc/issue) output for agetty to make it agetty
48 usable on systems with empty /etc.
49
50 This change is little bit controversial, because now agetty prints nothing
51 by default and it's probably used by admins to hide information about the
52 system to unauthorized users. We already have --noissue to disable issue
53 output. The question is if admins use this option, "rm /etc/issue" is
54 probably easer than modify inittab (or systemd unit file).
55
56 Maybe we can implement it by --enable-agetty-default-issue compile option and
57 move the decision to downstream maintainers ;-)
58
426ee7cb
KZ
59nsenter(1)
60----------
61 - read the default UID and GID from the target process.
62 http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/9553/focus=9585
63
35bc7a2b
KZ
64hwlock
65------
66 - use /var/lib/hwclock/drift to store hw-clock drift numbers.
67 - use /etc/adjtime as read-only for UTC/LOCAL information only
68 - the /var/lib/hwclock/drift should be implemented backwardly compatible,
69 it means use the file only if exists, otherwise follow /etc/adjtime
70
b75b23b4
KZ
71bash completion
72---------------
20a51056 73- Optional argument handling requires user to press backspace to get
58c41e15 74 argument completion.
20a51056
SK
75- Comma separated value, e.g., --output 'value1,value2', are not
76 completed for users.
b75b23b4 77
b1883029
KZ
78libmount (mount/umount)
79-----------------------
01df6eeb 80
387d5155
KZ
81 - (!) support "noauto,auto"; now mnt_context_next_mount() follows old mount(8)
82 behavior and search for "noauto" string. It seems the more correct behavior
83 would be to use the options as flags (mnt_context_set_user_mflags()) and check
84 for MNT_MS_NOAUT rather than for a string.
85
f19c6328
KZ
86 - allow to execute mount(2) in another namespace, something like:
87 mount --namespace=/proc/$n/ns/mnt /dev/sda2 /bar
88 see https://bugzilla.redhat.com/show_bug.cgi?id=1199554 for more details.
89
1340d433
KZ
90 - add options to control fstab/mtab mount options usage, something like:
91
92 --options-mode={ignore,append,prepend,replace} MNT_OMODE_{IGNORE, ...}
93 --options-source={fstab,mtab,disable} MNT_OMODE_{FSTAB,MTAB,NOTAB}
94 --options-source-force MNT_OMODE_FORCE
95
96 (all this already supported by libmount)
01df6eeb 97
6d4774b0 98
28297408
KZ
99partx
100-----
101
4231bffe
KZ
102 - support mapping by device-mapper if argv[0] is "kpartx" or --dm option is used.
103
b1883029
KZ
104
105docs
106----
107
108 - (!) use something better than gtk-doc for libmount and libblkid (doxyden?)
109
110 - (!) add API documentation to libuuid
28297408 111
4231bffe 112
a4f4cc75
KZ
113login-utils:
114-----------
115
b75b23b4
KZ
116 - consolidate newgrp(1)
117 * we have "su --group/--supp-group" to switch between groups, newgrp(1) in
118 util-linux and shadow-utils (and sg(1) alias in shadow-utils)
119 * the unique functionality provided by newgpr(1) is support for group
120 passwords [/etc/gshadow] -- do we really need this functionality?
121 * maybe we can mark group-passwords as deprecated, and replace sg(1) and
122 newgpr(1) with su(1) code. The another way is to ask fro group password in
123 su --group too.
124 * note that shadow-utils newgpr(1) provides support for syslog and audit log.
a4f4cc75 125
a24f0ade
KZ
126libblkid
127--------
5d5ae40b 128
c9f51c71
KZ
129 - (!) don't use internally blkid_loff_t, rather use off_t, size_t, ssize_t,
130 stdint.h types and so on...
131
28fed5d6 132 - add FSSIZE value -- filesystem size (klibc requirement)
a24f0ade 133
b1883029 134 - (!) add support for dasd PT (used for example on s390)
f2813fce 135
425ae8f5
KZ
136libfdisk
137--------
b116ef42 138
066e2174
KZ
139 - (!) use fputs_quoted() when print partition name= and allow to use \x%02x
140 for input to escape unprintable chars and quotes.
141
425ae8f5
KZ
142 - add support for Apple Partition Map (see libblkid/src/partitions/mac.c)
143 http://en.wikipedia.org/wiki/Apple_Partition_Map
144
b1883029 145 - catch SIGINT (Ctrl-C) and return to main menu.
ef5d1feb
KZ
146 From Red Hat bugzilla #545488:
147
148 While using fdisk normally, if you accidentally pressed the wrong button (to
149 start a sequence of questions for some operation, e.g. 'c' to create
150 partition). The tool tries too hard to keep asking you for valid input. You
151 can't provide a blank or invalid input to get it to break out of the current
152 dialog sequence and get back to the main menu.
153
a24f0ade
KZ
154misc
155----
156
b1883029 157 - add mllockall() and SCHED_FIFO to hwclock,
a24f0ade
KZ
158 see http://lkml.org/lkml/2008/10/12/132
159
19a9d0b7
KZ
160
161---------------
162exotic requests
163---------------
164
b1883029 165 - add SELinux security contexts support to the 'ipcs' utility
8da18ddb
KZ
166 http://bugzilla.redhat.com/show_bug.cgi?id=225342
167
168 Would be great to list the current system IPC Objects with their respective
169 security labels (where allowed) with something like 'ipcs -Z' - following the
170 way other tools reports those.
171
172