- **Milestone**: 4.7.RC1 --> 4.7.0
---
** [tickets:#1550] LOG: Ownership of log files is not changed when group name
is changed**
**Status:** review
**Milestone:** 4.7.0
**Created:** Fri Oct 16, 2015 11:57 AM UTC by elunlen
**Last Updated:** Tue Oct 20, 2015 05:39 AM UTC
**Owner:** Vu Minh Nguyen
When applying the groupname (IMM callback apply), group ownership shall be
changed for all existing log files. This will not happen since the function
that is supposed to do this job has not got the groupname so the operation will
fail. However the new groupname is correctly saved in the configuration store
and when new log files are created they will be given the correct ownership.
The handler function ‘own_log_files_by_group_hdl()’ uses the content of the
‘groupname’ member of the olfbgh_t structure with chown() but as you say this
variable is never set to any value in the corresponding lgs_own_log_files_h()
function.
The logDataGroupname_fileown() function (which is the only place where
lgs_own_log_files_h() is called) has the new group name as an in parameter but
there is no in parameter for giving this information to the
lgs_own_log_files_h() function.
In own_log_files_by_group_hdl() function ‘gid’ used with chown() is fetched
using function lgs_get_data_gid(). Originally this function was using the
groupname in the configuration store but now the groupname is an in parameter
to this function. Also groupname has been added to the olfbgh_t structure.
However passing this information to the lgs_own_log_files_h() and passing the
information own_log_files_by_group_hdl() to is missing.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets