Update perm_flags field