def cb_link_read_file_read_link (s1, s2): if s2.is_a(SYS_open) and fcntl.is_W(s2.flag): return False return True
def cb_file_create_file_read_link (s1, s2): if s1.is_a(SYS_open) and fcntl.is_R(s1.flag): return False if s2.is_a(SYS_open) and fcntl.is_W(s2.flag): return False return True