There is a longer-term project to provide a library for users to consume, and not call uadmin(2) directly (in fact, we want to discourage this practice, as it doesn't properly audit).
As the library is a bit more complex, and there is immediate need for a (simple) cli, this wraps the equivilent calls (with proper audit and authorization calls) till they can be included in the new library (that project will need to also update this command to use those calls, but that is a different project and case). ---- Randy On Tue, 17 Feb 2009, Garrett D'Amore wrote: > +1. > > Is there any desire to provide consistent input/output for this to be used in > scripting? (Or are we simply going to expect application consumers to call > uadmin(2) directly?) > > --Garrett > > Randy Fishel wrote: > > I am sponsoring this fasttrack on behalf of myself. It provides the > > replacement CLI tool for the EOF'd CDE sys-suspend command. The > > timeout is 2/23/09. > > > > > > Template Version: @(#)sac_nextcase %I% %G% SMI > > This information is Copyright 2009 Sun Microsystems > > 1. Introduction > > 1.1. Project/Component Working Name: > > sys-suspend(1) > > 1.2. Name of Document Author/Supplier: > > Author: Randy Fishel > > 1.3 Date of This Document: > > 17 February, 2009 > > 4. Technical Description > > > > This project proposes a CLI-only replacement for the EOF'd CDE > > sys-suspend. This tool will have the same command-line arguments as > > the CDE version, so it can be used as a drop-in replacement, with the > > exception that it will not generate any GUI popups. It will also be > > placed in /usr/bin with no symlink to /usr/openwin/bin. > > > > /usr/bin/sys-suspend will also use the power management 'suspend' > > authorizations defined in PSARC/2008/021 (see below), and will not use > > /etc/default/sys-suspend. Console user requirements are met by PSARC > > 2008/034, other users will need to include the authorizations or > > profiles defined in PSARC/2008/021. Auditing will be performed in a > > manner that is agreeable with the Auditing team. Known ON consumers of > > /usr/openwin/bin/sys-suspend will be updated to use /usr/bin/sys-suspend. > > > > This command is needed due to the removal of the CDE version and the > > deprecation of gnome-sys-suspend (as well as will-not-fix bugs against > > it), such that there is no command-line tool for OpenSolaris, or after > > the removal of /usr/openwin/bin/sys-suspend. > > > > Note: LSARC 2008/763 was approved with the requirement that > > /usr/openwin/bin/suspend (et.al.) cannot be removed till a replacement > > is available. This case only describes that replacement, the removal > > of /usr/openwin/bin/sys-suspend or /etc/default/sys-suspend is the > > responsibility of the project team for LSARC 2008/763 and is not part > > of this case. > > > > This project requests a Minor release binding. > > > > Exports: > > Interface Classification > > ================================================= > > /usr/bin/sys-suspend Committed > > > > > > Imports > > Interface Case > > ================================================= > > solaris.system.power.suspend.ram PSARC 2008/021 > > solaris.system.power.suspend.disk PSARC 2008/021 > > > > > > References > > LSARC 2008/763 EOF of sys-suspend > > PSARC 1996/408 sys-suspend > > LSARC 2007/648 Removal of CDE > > PSARC 2008/021 HAL Power Management Support > > PSARC 2008/034 Defining Workstation Owner Infrastructure > > > > > > 6. Resources and Schedule > > 6.4. Steering Committee requested information > > 6.4.1. Consolidation C-team Name: > > ON > > 6.5. ARC review type: FastTrack > > 6.6. ARC Exposure: open > > > >