diff usr/src/cmd/svc/startd/startd.c @ 5040:ff6ebd8761a6

PSARC 2007/177 SMF read-protected property storage PSARC 2007/519 svccfg(1M) restore 6537749 SMF should support read-protection of data 6538452 svccfg delete leaks memory on syntax error with options 6546699 svccfg archive should be able to be reimported 6559692 svccfg fails to import a manifest with an empty <property> 6597168 startd is setting $SMF_METHOD incorrectly 6597173 allocation failure can induce crash in scf_handle_decode_fmri() 6597183 allocation failure can induce crash in scf_simple_app_props_free() 6597190 scf_simple_app_props_get() can return with unset error code 6598922 rc_node_modify_permission_check() calls perm_granted() with rn_lock held
author wesolows
date Thu, 13 Sep 2007 10:10:42 -0700
parents fb20891389ee
children f7a026c6d133
line wrap: on
line diff
--- a/usr/src/cmd/svc/startd/startd.c	Thu Sep 13 08:30:20 2007 -0700
+++ b/usr/src/cmd/svc/startd/startd.c	Thu Sep 13 10:10:42 2007 -0700
@@ -18,8 +18,9 @@
  *
  * CDDL HEADER END
  */
+
 /*
- * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -519,6 +520,12 @@
 				    "values; ignored.\n", buf);
 				continue;
 
+			case SCF_ERROR_PERMISSION_DENIED:
+				uu_warn("property \"options/%s\" cannot be "
+				    "read because startd has insufficient "
+				    "permission; ignored.\n", buf);
+				continue;
+
 			case SCF_ERROR_HANDLE_MISMATCH:
 			case SCF_ERROR_NOT_BOUND:
 			case SCF_ERROR_NOT_SET: