Resolved development discussions
- sysevent_bind_handle() and required privs/uid
See CR 6816881
Filed CR to track sysevent uid==0 check issue. For now, we'll work around by wrapping the sysevent call with adjust privs and setuid calls.
- mtu bounds checking; how will users know if there's a failure here?
- question also applies to when ENM scripts fail or location activation fails
- log error using syslog, then the respective ncu is in "maintenance" state. The user fixes the ncu, commits it, which causes nwamd to refresh that ncu. When objects are refreshed, nwamd should evaluate whether that object should be activated or not (applies to all ncus, locs, enms).
- Auxiliary states (RFE) will contain more information about why activation failed.
- enabling network/location by nwamd
network/location is not enabled by default. It is started temporarily by nwamd or network/physical:default. The following code in main.c in supposed to start network/location, but it doesn't. /* * Restore/Restart/Enable NETWORK_LOCATION_SVC */ (void) smf_restore_instance(NETWORK_LOCATION_SVC); (void) smf_restart_instance(NETWORK_LOCATION_SVC); (void) smf_enable_instance(NETWORK_LOCATION_SVC, SMF_TEMPORARY); Here the situation: If NETWORK_LOCATION_SVC = "svc:/network/location", then all three return "invalid argument". ":default" is missing. If NETWORK_LOCATION_SVC = "svc:/network/location:default", then _restore_() returns "required constraint is missing" => i think it means network/location is not in maintenance mode. The other two calls return "entity not found" meaning FMRI is valid but there's no matching instance. I changed the <create_default_instance ...> in network-location.xml to <single_instance /> and also <instance ...> </instance> and in both cases I am getting the same errors.- Two things. First, the :default instance is needed. Second, for some reason scf_error() kept returning "entity not found" but the service was being enabled. I've changed the <create_default_instance ...> to <instance ...> ... </instance> in network-location.xml and things seems to be moving along.
- Merge of two implementations. network/location will be enabled by default, with dependencies on nwam and filesystem/usr. So, nwamd will set the location/selected property before network/location starts.