Migrate setsecurity