Joris van der Wel joris@jorisvanderwel.com writes:
+/** Set the security descriptor using the current primary token for defaults. */ +int default_set_sd( struct object *obj, const struct security_descriptor *sd,
unsigned int set_info )
+{
- return set_sd_defaults_from_token( obj, sd, set_info, current ? current->process->token : NULL );
There shouldn't be any need to test the current pointer for null. If it's needed, that probably indicates some other problem.