switch security_path_chmod() to struct path *