Skip to content

Commit d094ac2

Browse files
committed
MGM: Acl - Log the ACL modification that took place
1 parent 349f2c9 commit d094ac2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

mgm/proc/user/AclCmd.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ AclCmd::ModifyAcls(const eos::console::AclProto& acl)
205205

206206
ApplyRule(rule_map, acl_pos);
207207
new_acl_val = GenerateAclString(rule_map);
208+
std::ostringstream oss;
209+
oss << "msg=\"ACL change from " << dir_acls << " to " << new_acl_val << "\" path=\"" << acl.path() << "\"";
210+
eos_info(oss.str().c_str());
208211

209212
// Set xattr taking the namespace lock
210213
if (gOFS->_attr_set(elem.c_str(), error, mVid, 0, acl_key.c_str(),

0 commit comments

Comments
 (0)