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