usr/src/lib/libzonecfg/common/libzonecfg.c
changeset 2267 c5d9a656170f
parent 2078 40e52347168e
child 2303 327ca1e2fdf0
equal deleted inserted replaced
2266:0f434036255b 2267:c5d9a656170f
    88 #define	DTD_ATTR_ADDRESS	(const xmlChar *) "address"
    88 #define	DTD_ATTR_ADDRESS	(const xmlChar *) "address"
    89 #define	DTD_ATTR_AUTOBOOT	(const xmlChar *) "autoboot"
    89 #define	DTD_ATTR_AUTOBOOT	(const xmlChar *) "autoboot"
    90 #define	DTD_ATTR_DIR		(const xmlChar *) "directory"
    90 #define	DTD_ATTR_DIR		(const xmlChar *) "directory"
    91 #define	DTD_ATTR_LIMIT		(const xmlChar *) "limit"
    91 #define	DTD_ATTR_LIMIT		(const xmlChar *) "limit"
    92 #define	DTD_ATTR_LIMITPRIV	(const xmlChar *) "limitpriv"
    92 #define	DTD_ATTR_LIMITPRIV	(const xmlChar *) "limitpriv"
       
    93 #define	DTD_ATTR_BOOTARGS	(const xmlChar *) "bootargs"
    93 #define	DTD_ATTR_MATCH		(const xmlChar *) "match"
    94 #define	DTD_ATTR_MATCH		(const xmlChar *) "match"
    94 #define	DTD_ATTR_NAME		(const xmlChar *) "name"
    95 #define	DTD_ATTR_NAME		(const xmlChar *) "name"
    95 #define	DTD_ATTR_PHYSICAL	(const xmlChar *) "physical"
    96 #define	DTD_ATTR_PHYSICAL	(const xmlChar *) "physical"
    96 #define	DTD_ATTR_POOL		(const xmlChar *) "pool"
    97 #define	DTD_ATTR_POOL		(const xmlChar *) "pool"
    97 #define	DTD_ATTR_PRIV		(const xmlChar *) "priv"
    98 #define	DTD_ATTR_PRIV		(const xmlChar *) "priv"
   873 {
   874 {
   874 	return (get_alloc_rootattr(handle, DTD_ATTR_LIMITPRIV, limitpriv));
   875 	return (get_alloc_rootattr(handle, DTD_ATTR_LIMITPRIV, limitpriv));
   875 }
   876 }
   876 
   877 
   877 int
   878 int
   878 zonecfg_set_limitpriv(zone_dochandle_t handle, char *limitprivsize)
   879 zonecfg_set_limitpriv(zone_dochandle_t handle, char *limitpriv)
   879 {
   880 {
   880 	return (setrootattr(handle, DTD_ATTR_LIMITPRIV, limitprivsize));
   881 	return (setrootattr(handle, DTD_ATTR_LIMITPRIV, limitpriv));
       
   882 }
       
   883 
       
   884 int
       
   885 zonecfg_get_bootargs(zone_dochandle_t handle, char *bargs, size_t bargssize)
       
   886 {
       
   887 	return (getrootattr(handle, DTD_ATTR_BOOTARGS, bargs, bargssize));
       
   888 }
       
   889 
       
   890 int
       
   891 zonecfg_set_bootargs(zone_dochandle_t handle, char *bargs)
       
   892 {
       
   893 	return (setrootattr(handle, DTD_ATTR_BOOTARGS, bargs));
   881 }
   894 }
   882 
   895 
   883 /*
   896 /*
   884  * /etc/zones/index caches a vital piece of information which is also
   897  * /etc/zones/index caches a vital piece of information which is also
   885  * in the <zonename>.xml file: the path to the zone.  This is for performance,
   898  * in the <zonename>.xml file: the path to the zone.  This is for performance,