CC-3299: Media monitor should not change the owner of watched files
- it sets dir permission 02777 and file permission to 0666 if the path is under "stor" dir, else it tries add world readable bit.
This commit is contained in:
parent
c6addf37ba
commit
af305fce47
2 changed files with 21 additions and 12 deletions
|
@ -153,8 +153,10 @@ class AirtimeProcessEvent(ProcessEvent):
|
|||
self.mmc.set_needed_file_permissions(pathname, dir)
|
||||
|
||||
def process_IN_MODIFY(self, event):
|
||||
self.logger.info("process_IN_MODIFY: %s", event)
|
||||
self.handle_modified_file(event.dir, event.pathname, event.name)
|
||||
# if IN_MODIFY is followed by IN_CREATE, it's not true modify event
|
||||
if not event.pathname in self.create_dict:
|
||||
self.logger.info("process_IN_MODIFY: %s", event)
|
||||
self.handle_modified_file(event.dir, event.pathname, event.name)
|
||||
|
||||
def handle_modified_file(self, dir, pathname, name):
|
||||
# if /etc/mtab is modified
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue