Project

General

Profile

Actions

Bug #14871

closed

Retire setuname

Added by Garrett D'Amore 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

This utility is a long obsolete command -- it was for SVID compliance (which nobody cares about anymore, and we are not SVID compliant anymore anyway.)

Note that Oracle Solaris removed this just after illumos forked off.

There are no known consumers of this utility. It can in theory support changing the value of uname -s, but that is very fraught and will likely cause lots of breakage if done.

A survey is out at the moment for users of this utility, but so far it seems nobody uses it. Several distributions have already removed it outright.

This utility also operates by writing to /dev/kmem directly, and contains a portability morass.

We could drop in a wrapper that causes the -n flag to call sethostname(), but the feeling is that everyone who needs that functionality already does so using uname -S or hostname.

Actions #1

Updated by Electric Monk 4 months ago

  • Gerrit CR set to 2278
Actions #2

Updated by Garrett D'Amore 4 months ago

  • Status changed from New to In Progress
Actions #3

Updated by Garrett D'Amore 4 months ago

This is removal of a utility, so apart from building it, and manually verifying the output from any altered man pages, there isn't really much else to do.

There are no callers of the script anywhere in illumos.

Actions #4

Updated by Garrett D'Amore 4 months ago

  • Status changed from In Progress to Pending RTI
Actions #5

Updated by Electric Monk 4 months ago

  • Status changed from Pending RTI to Closed
  • % Done changed from 0 to 100

git commit fed77ffd89ea4501fe7b7103197dc7541246e3bb

commit  fed77ffd89ea4501fe7b7103197dc7541246e3bb
Author: Garrett D'Amore <garrett@damore.org>
Date:   2022-08-02T14:09:32.000Z

    14871 Retire setuname
    Reviewed by: Toomas Soome <tsoome@me.com>
    Reviewed by: Peter Tribble <peter.tribble@gmail.com>
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Joshua M. Clulow <josh@sysmgr.org>

Actions

Also available in: Atom PDF