View Issue Details

IDProjectCategoryView StatusLast Update
00005401003.1(2008)/Issue 7System Interfacespublic2012-02-10 12:07
ReporterEdSchouten Assigned Toajosey  
PrioritynormalSeverityEditorialTypeEnhancement Request
Status ClosedResolutionRejected 
NameEd Schouten
OrganizationKumina bv
User Reference
Sectionendutxent()
Page Number806
Line Numbern/a
Interp Status---
Final Accepted Text
Summary0000540: Add API for adding entries to user accounting database by passing a pseudo-terminal master file descriptor
DescriptionThere are libraries out there, such as `libutempter' that can be used to update utmp(x) entries without any root-like privileges, by passing the file descriptor to a pseudo-terminal master device. These libraries typically spawn a setuid binary to perform the update to the database.

It would be nice if POSIX were to integrate such a feature. Currently there is quite some inconsistency in current implementations whether or not they work without any additional privileges. In (almost) all cases, these unprivileged applications are only interested in managing entries for pseudo-terminals.
Desired ActionThis could be solved by adding a function like:

struct utmpx *fpututxline(int fd, const struct utmpx *utmpx);

The function would work the same as pututxline(), with the exception that ut_line, ut_id and ut_user are ignored, because they are derived from `fd' and the credentials of the running application. This function shall only work on pseudo-terminal master devices -- not regular TTYs or other character devices.
TagsNo tags attached.

Activities

EdSchouten

2012-02-01 19:07

updater   bugnote:0001116

Also, ut_pid and ut_tv should also be filled in automatically.

ajosey

2012-02-10 12:07

manager   bugnote:0001121

This item is rejected as out of scope since it proposes a new API.
The Austin Group has a specific process which needs to be followed for proposals for new APIs to bring them into scope.

See Austin/112r3 and Austin/164 for details.

See the text starting : New Work Items : in
http://www.opengroup.org/austin/docs/austin_112r3.txt

Also see the diagram in:
http://www.opengroup.org/austin/docs/austin_164.pdf

Issue History

Date Modified Username Field Change
2012-02-01 19:05 EdSchouten New Issue
2012-02-01 19:05 EdSchouten Status New => Under Review
2012-02-01 19:05 EdSchouten Assigned To => ajosey
2012-02-01 19:05 EdSchouten Name => Ed Schouten
2012-02-01 19:05 EdSchouten Organization => Kumina bv
2012-02-01 19:05 EdSchouten Section => endutxent()
2012-02-01 19:05 EdSchouten Page Number => 806
2012-02-01 19:05 EdSchouten Line Number => n/a
2012-02-01 19:07 EdSchouten Note Added: 0001116
2012-02-10 12:07 ajosey Interp Status => ---
2012-02-10 12:07 ajosey Note Added: 0001121
2012-02-10 12:07 ajosey Status Under Review => Closed
2012-02-10 12:07 ajosey Resolution Open => Rejected