summaryrefslogtreecommitdiff
path: root/usr/src/lib
diff options
context:
space:
mode:
authorphitran <none@none>2008-05-07 15:12:21 -0700
committerphitran <none@none>2008-05-07 15:12:21 -0700
commitd2ec54f7875f7e05edd56195adbeb593c947763f (patch)
tree060ccb18e19011bfee2ea7c48b1bd98e442caeea /usr/src/lib
parent5b764efa67662f6a18a3eea7053aab98a9fbfebf (diff)
downloadillumos-joyent-d2ec54f7875f7e05edd56195adbeb593c947763f.tar.gz
PSARC/2008/021 HAL Power Management Support
6682365 Add power management support for lid, LCD brightness, and power button --HG-- rename : usr/src/cmd/hal/probing/battery/Makefile => usr/src/cmd/hal/probing/acpi/Makefile rename : usr/src/cmd/hal/probing/battery/probe-battery.c => usr/src/cmd/hal/probing/acpi/probe-acpi.c rename : usr/src/cmd/hal/utils/battery.c => usr/src/cmd/hal/utils/acpi.c rename : usr/src/cmd/hal/utils/battery.h => usr/src/cmd/hal/utils/acpi.h rename : usr/src/uts/common/sys/battery.h => usr/src/uts/common/sys/acpi_drv.h rename : usr/src/uts/common/sys/sysevent/acpiev.h => usr/src/uts/common/sys/sysevent/pwrctl.h rename : usr/src/uts/i86pc/battery/Makefile => usr/src/uts/i86pc/acpi_drv/Makefile rename : usr/src/uts/i86pc/io/battery/battery.c => usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c rename : usr/src/uts/i86pc/io/battery/battery.conf => usr/src/uts/i86pc/io/acpi_drv/acpi_drv.conf
Diffstat (limited to 'usr/src/lib')
-rw-r--r--usr/src/lib/libsecdb/auth_attr.txt5
-rw-r--r--usr/src/lib/libsecdb/help/auths/Makefile7
-rw-r--r--usr/src/lib/libsecdb/help/auths/SysPowerMgmtBrightness.html42
-rw-r--r--usr/src/lib/libsecdb/help/auths/SysPowerMgmtHeader.html40
-rw-r--r--usr/src/lib/libsecdb/help/auths/SysPowerMgmtSuspend.html42
-rw-r--r--usr/src/lib/libsecdb/help/auths/SysPowerMgmtSuspendtoDisk.html42
-rw-r--r--usr/src/lib/libsecdb/help/auths/SysPowerMgmtSuspendtoRAM.html42
-rw-r--r--usr/src/lib/libsecdb/help/profiles/Makefile7
-rw-r--r--usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmt.html38
-rw-r--r--usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtBrightness.html38
-rw-r--r--usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtSuspend.html38
-rw-r--r--usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtSuspendtoDisk.html38
-rw-r--r--usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtSuspendtoRAM.html38
-rw-r--r--usr/src/lib/libsecdb/prof_attr.txt10
-rw-r--r--usr/src/lib/policykit/libpolkit/common/libpolkit-rbac.c13
15 files changed, 436 insertions, 4 deletions
diff --git a/usr/src/lib/libsecdb/auth_attr.txt b/usr/src/lib/libsecdb/auth_attr.txt
index 9a5cdf18ba..ea5203ceb8 100644
--- a/usr/src/lib/libsecdb/auth_attr.txt
+++ b/usr/src/lib/libsecdb/auth_attr.txt
@@ -152,6 +152,11 @@ solaris.smf.read.ndmp:::Read permission for protected SMF NDMP Service Propertie
solaris.system.:::Machine Administration::help=SysHeader.html
solaris.system.date:::Set Date & Time::help=SysDate.html
solaris.system.shutdown:::Shutdown the System::help=SysShutdown.html
+solaris.system.power.:::System Power Management::help=SysPowerMgmtHeader.html
+solaris.system.power.suspend.:::Suspend the System::help=SysPowerMgmtSuspend.html
+solaris.system.power.suspend.disk:::Suspend to Disk::help=SysPowerMgmtSuspendtoDisk.html
+solaris.system.power.suspend.ram:::Suspend to RAM::help=SysPowerMgmtSuspendToRAM.html
+solaris.system.power.brightness:::Control LCD Brightness::help=SysPowerMgmtBrightness.html
#
solaris.smf.manage.iscsitgt:::Manage ISCSI Target Service States::help=SmfValueIscsitgt.html
solaris.smf.read.iscsitgt:::Read ISCSI Target secrets::help=SmfValueIscsitgt.html
diff --git a/usr/src/lib/libsecdb/help/auths/Makefile b/usr/src/lib/libsecdb/help/auths/Makefile
index 811e5a0ff9..e168b9ed64 100644
--- a/usr/src/lib/libsecdb/help/auths/Makefile
+++ b/usr/src/lib/libsecdb/help/auths/Makefile
@@ -131,7 +131,12 @@ HTMLENTS = \
PrintUnlabeled.html \
TNDaemon.html \
TNctl.html \
- ValueTND.html
+ ValueTND.html \
+ SysPowerMgmtHeader.html \
+ SysPowerMgmtSuspend.html \
+ SysPowerMgmtSuspendtoDisk.html \
+ SysPowerMgmtSuspendtoRAM.html \
+ SysPowerMgmtBrightness.html
HELPDIR=$(ROOT)/usr/lib/help
AUTHDIR=$(HELPDIR)/auths
diff --git a/usr/src/lib/libsecdb/help/auths/SysPowerMgmtBrightness.html b/usr/src/lib/libsecdb/help/auths/SysPowerMgmtBrightness.html
new file mode 100644
index 0000000000..2996f18bc3
--- /dev/null
+++ b/usr/src/lib/libsecdb/help/auths/SysPowerMgmtBrightness.html
@@ -0,0 +1,42 @@
+<HTML>
+<!--
+ Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ Use is subject to license terms.
+
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+-->
+<!-- SCCS keyword
+#pragma ident "%Z%%M% %I% %E% SMI"
+-->
+<HEAD>
+<!--
+META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"
+-->
+<!--
+META NAME="GENERATOR" CONTENT="Mozilla/4.02 [en] (X11; U; SunOS 5.6 sun4u) [Netscape]"
+-->
+</HEAD>
+<BODY>
+When Control LCD Brightness is in the Authorizations Included column, it grants the authorization to control LCD brightness.
+<p>
+If Control LCD Brightness is grayed, then you are not entitled to Add or Remove this authorization.
+<BR>&nbsp;
+</BODY>
+</HTML>
diff --git a/usr/src/lib/libsecdb/help/auths/SysPowerMgmtHeader.html b/usr/src/lib/libsecdb/help/auths/SysPowerMgmtHeader.html
new file mode 100644
index 0000000000..1c5b1f5c72
--- /dev/null
+++ b/usr/src/lib/libsecdb/help/auths/SysPowerMgmtHeader.html
@@ -0,0 +1,40 @@
+<HTML>
+<!--
+ Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ Use is subject to license terms.
+
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+-->
+<!-- SCCS keyword
+#pragma ident "%Z%%M% %I% %E% SMI"
+-->
+<HEAD>
+<!--
+META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"
+-->
+<!--
+META NAME="GENERATOR" CONTENT="Mozilla/4.02 [en] (X11; U; SunOS 5.6 sun4u) [Netscape]"
+-->
+</HEAD>
+<BODY>
+Authorized to change the system power management policies.
+<BR>&nbsp;
+</BODY>
+</HTML>
diff --git a/usr/src/lib/libsecdb/help/auths/SysPowerMgmtSuspend.html b/usr/src/lib/libsecdb/help/auths/SysPowerMgmtSuspend.html
new file mode 100644
index 0000000000..ba6bb0cee5
--- /dev/null
+++ b/usr/src/lib/libsecdb/help/auths/SysPowerMgmtSuspend.html
@@ -0,0 +1,42 @@
+<HTML>
+<!--
+ Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ Use is subject to license terms.
+
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+-->
+<!-- SCCS keyword
+#pragma ident "%Z%%M% %I% %E% SMI"
+-->
+<HEAD>
+<!--
+META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"
+-->
+<!--
+META NAME="GENERATOR" CONTENT="Mozilla/4.02 [en] (X11; U; SunOS 5.6 sun4u) [Netscape]"
+-->
+</HEAD>
+<BODY>
+When Suspend the System is in the Authorizations Included column, it grants the authorization to suspend the operating system.
+<p>
+If Suspend the System is grayed, then you are not entitled to Add or Remove this authorization.
+<BR>&nbsp;
+</BODY>
+</HTML>
diff --git a/usr/src/lib/libsecdb/help/auths/SysPowerMgmtSuspendtoDisk.html b/usr/src/lib/libsecdb/help/auths/SysPowerMgmtSuspendtoDisk.html
new file mode 100644
index 0000000000..f81b8b79c0
--- /dev/null
+++ b/usr/src/lib/libsecdb/help/auths/SysPowerMgmtSuspendtoDisk.html
@@ -0,0 +1,42 @@
+<HTML>
+<!--
+ Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ Use is subject to license terms.
+
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+-->
+<!-- SCCS keyword
+#pragma ident "%Z%%M% %I% %E% SMI"
+-->
+<HEAD>
+<!--
+META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"
+-->
+<!--
+META NAME="GENERATOR" CONTENT="Mozilla/4.02 [en] (X11; U; SunOS 5.6 sun4u) [Netscape]"
+-->
+</HEAD>
+<BODY>
+When Suspend to Disk is in the Authorizations Included column, it grants the authorization to suspend the operating system to disk.
+<p>
+If Suspend to Disk is grayed, then you are not entitled to Add or Remove this authorization.
+<BR>&nbsp;
+</BODY>
+</HTML>
diff --git a/usr/src/lib/libsecdb/help/auths/SysPowerMgmtSuspendtoRAM.html b/usr/src/lib/libsecdb/help/auths/SysPowerMgmtSuspendtoRAM.html
new file mode 100644
index 0000000000..70ff5ff824
--- /dev/null
+++ b/usr/src/lib/libsecdb/help/auths/SysPowerMgmtSuspendtoRAM.html
@@ -0,0 +1,42 @@
+<HTML>
+<!--
+ Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ Use is subject to license terms.
+
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+-->
+<!-- SCCS keyword
+#pragma ident "%Z%%M% %I% %E% SMI"
+-->
+<HEAD>
+<!--
+META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"
+-->
+<!--
+META NAME="GENERATOR" CONTENT="Mozilla/4.02 [en] (X11; U; SunOS 5.6 sun4u) [Netscape]"
+-->
+</HEAD>
+<BODY>
+When Suspend to RAM is in the Authorizations Included column, it grants the authorization to suspend the operating system to RAM.
+<p>
+If Suspend to RAM is grayed, then you are not entitled to Add or Remove this authorization.
+<BR>&nbsp;
+</BODY>
+</HTML>
diff --git a/usr/src/lib/libsecdb/help/profiles/Makefile b/usr/src/lib/libsecdb/help/profiles/Makefile
index 41beab05fe..b8cc361a40 100644
--- a/usr/src/lib/libsecdb/help/profiles/Makefile
+++ b/usr/src/lib/libsecdb/help/profiles/Makefile
@@ -80,7 +80,12 @@ HTMLENTS = \
RtDefault.html \
RtIdmapMngmnt.html \
RtIdmapNameRulesMngmnt.html \
- RtVscanMngmnt.html
+ RtVscanMngmnt.html \
+ RtSysPowerMgmt.html \
+ RtSysPowerMgmtSuspend.html \
+ RtSysPowerMgmtSuspendtoDisk.html \
+ RtSysPowerMgmtSuspendtoRAM.html \
+ RtSysPowerMgmtBrightness.html
HELPDIR = $(ROOT)/usr/lib/help
diff --git a/usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmt.html b/usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmt.html
new file mode 100644
index 0000000000..bcc46d4a71
--- /dev/null
+++ b/usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmt.html
@@ -0,0 +1,38 @@
+<HTML>
+<!--
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+
+-- Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+-- Use is subject to license terms.
+-->
+<HEAD>
+ <TITLE> </TITLE>
+
+
+</HEAD>
+<BODY>
+<!-- ident "%Z%%M% %I% %E% SMI" -->
+
+When System Power Management is in the Rights Included column, it grants the right to configure system power management policies.
+<p>
+If System Power Management is grayed, then you are not entitled to Add or Remove this right.
+<p>
+</BODY>
+</HTML>
diff --git a/usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtBrightness.html b/usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtBrightness.html
new file mode 100644
index 0000000000..470f431e74
--- /dev/null
+++ b/usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtBrightness.html
@@ -0,0 +1,38 @@
+<HTML>
+<!--
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+
+-- Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+-- Use is subject to license terms.
+-->
+<HEAD>
+ <TITLE> </TITLE>
+
+
+</HEAD>
+<BODY>
+<!-- ident "%Z%%M% %I% %E% SMI" -->
+
+When Control LCD Brightness is in the Rights Included column, it grants the right to control LCD brightness.
+<p>
+If Control LCD Brightness is grayed, then you are not entitled to Add or Remove this right.
+<p>
+</BODY>
+</HTML>
diff --git a/usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtSuspend.html b/usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtSuspend.html
new file mode 100644
index 0000000000..2438bb4086
--- /dev/null
+++ b/usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtSuspend.html
@@ -0,0 +1,38 @@
+<HTML>
+<!--
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+
+-- Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+-- Use is subject to license terms.
+-->
+<HEAD>
+ <TITLE> </TITLE>
+
+
+</HEAD>
+<BODY>
+<!-- ident "%Z%%M% %I% %E% SMI" -->
+
+When Suspend the System is in the Rights Included column, it grants the right to suspend the operating system.
+<p>
+If Suspend the System is grayed, then you are not entitled to Add or Remove this right.
+<p>
+</BODY>
+</HTML>
diff --git a/usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtSuspendtoDisk.html b/usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtSuspendtoDisk.html
new file mode 100644
index 0000000000..a30dfb2a27
--- /dev/null
+++ b/usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtSuspendtoDisk.html
@@ -0,0 +1,38 @@
+<HTML>
+<!--
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+
+-- Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+-- Use is subject to license terms.
+-->
+<HEAD>
+ <TITLE> </TITLE>
+
+
+</HEAD>
+<BODY>
+<!-- ident "%Z%%M% %I% %E% SMI" -->
+
+When Suspend to Disk is in the Rights Included column, it grants the right to suspend the operating system to disk.
+<p>
+If Suspend to Disk is grayed, then you are not entitled to Add or Remove this right.
+<p>
+</BODY>
+</HTML>
diff --git a/usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtSuspendtoRAM.html b/usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtSuspendtoRAM.html
new file mode 100644
index 0000000000..f762a9007b
--- /dev/null
+++ b/usr/src/lib/libsecdb/help/profiles/RtSysPowerMgmtSuspendtoRAM.html
@@ -0,0 +1,38 @@
+<HTML>
+<!--
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+
+-- Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+-- Use is subject to license terms.
+-->
+<HEAD>
+ <TITLE> </TITLE>
+
+
+</HEAD>
+<BODY>
+<!-- ident "%Z%%M% %I% %E% SMI" -->
+
+When Suspend to RAM is in the Rights Included column, it grants the right to suspend the operating system to RAM.
+<p>
+If Suspend to RAM is grayed, then you are not entitled to Add or Remove this right.
+<p>
+</BODY>
+</HTML>
diff --git a/usr/src/lib/libsecdb/prof_attr.txt b/usr/src/lib/libsecdb/prof_attr.txt
index 33bd14bfda..0384d74bf4 100644
--- a/usr/src/lib/libsecdb/prof_attr.txt
+++ b/usr/src/lib/libsecdb/prof_attr.txt
@@ -34,7 +34,7 @@
All:::Execute any command as the user or role:help=RtAll.html
Audit Control:::Configure Solaris Auditing:auths=solaris.audit.config,solaris.jobs.admin;help=RtAuditCtrl.html
Audit Review:::Review Solaris Auditing logs:auths=solaris.audit.read;help=RtAuditReview.html
-Console User:::Manage System as the Console User:help=RtConsUser.html
+Console User:::Manage System as the Console User:profiles=Suspend To RAM,Suspend To Disk,Brightness;auths=solaris.system.shutdown;help=RtConsUser.html
Contract Observer:::Reliably observe any/all contract events:help=RtContractObserver.html
Device Management:::Control Access to Removable Media:auths=solaris.device.*;help=RtDeviceMngmnt.html
Printer Management:::Manage printers, daemons, spooling:auths=solaris.print.*,solaris.label.print,solaris.smf.manage.discovery.printers.*,solaris.smf.value.discovery.printers.*;help=RtPrntAdmin.html
@@ -93,3 +93,11 @@ Object Label Management:::Change labels on files.:auths=solaris.device.allocate,
Outside Accred:::Allow a user to operate outside the user accreditation range.:auths=solaris.label.range;help=RtOutsideAccred.html
ISCSI Target Administration:::Configure ISCSI Target service:auths=solaris.smf.modify.iscsitgt,solaris.smf.read.iscsitgt,solaris.smf.value.iscsitgt
ISCSI Target Management:::Start/Stop ISCSI Target service:auths=solaris.smf.manage.iscsitgt
+#
+# Power Management profiles:
+#
+System Power:::For authorized users to manage system power:auths=solaris.system.power.*;help=RtSysPowerMgmt.html
+Suspend:::For authorized users to Suspend system:auths=solaris.system.power.suspend.*;help=RtSysPowerMgmtSuspend.html
+Suspend To Disk:::For authorized users to Suspend to Disk:auths=solaris.system.power.suspend.disk;help=RtSysPowerMgmtSuspendToDisk.html
+Suspend To RAM:::For authorized users to Suspend to RAM:auths=solaris.system.power.suspend.ram;help=RtSysPowerMgmtSuspendToRAM.html
+Brightness:::For authorized users to Control LCD Brightness:auths=solaris.system.power.brightness;help=RtSysPowerMgmtBrightness.html
diff --git a/usr/src/lib/policykit/libpolkit/common/libpolkit-rbac.c b/usr/src/lib/policykit/libpolkit/common/libpolkit-rbac.c
index c7fcf1a454..f57d72a20c 100644
--- a/usr/src/lib/policykit/libpolkit/common/libpolkit-rbac.c
+++ b/usr/src/lib/policykit/libpolkit/common/libpolkit-rbac.c
@@ -2,7 +2,7 @@
*
* libpolkit-rbac.c : RBAC implementation of the libpolkit API
*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Licensed under the Academic Free License version 2.1
@@ -150,6 +150,17 @@ libpolkit_is_uid_allowed_for_privilege (LibPolKitContext *ctx,
authname = "solaris.device.mount.fixed";
} else if (strcmp (privilege, "hal-storage-fixed-mount-all-options") == 0) {
authname = "solaris.device.mount.alloptions.fixed";
+ } else if (strcmp(privilege, "hal-power-suspend") == 0) {
+ authname = "solaris.system.power.suspend.ram";
+ } else if (strcmp(privilege, "hal-power-hibernate") == 0) {
+ authname = "solaris.system.power.suspend.disk";
+ } else if ((strcmp(privilege, "hal-power-shutdown") == 0) ||
+ (strcmp(privilege, "hal-power-reboot") == 0)) {
+ authname = "solaris.system.shutdown";
+ } else if (strcmp(privilege, "hal-power-cpu") == 0) {
+ authname = "solaris.system.power.cpu";
+ } else if (strcmp(privilege, "hal-power-brightness") == 0) {
+ authname = "solaris.system.power.brightness";
} else {
/* replace '-' with '.' */
authname = g_strdup (privilege);