@@ -476,56 +476,6 @@ void abort_creds(struct cred *new)
476
476
}
477
477
EXPORT_SYMBOL (abort_creds );
478
478
479
- /**
480
- * override_creds - Override the current process's subjective credentials
481
- * @new: The credentials to be assigned
482
- *
483
- * Install a set of temporary override subjective credentials on the current
484
- * process, returning the old set for later reversion.
485
- */
486
- const struct cred * override_creds (const struct cred * new )
487
- {
488
- const struct cred * old ;
489
-
490
- kdebug ("override_creds(%p{%ld})" , new ,
491
- atomic_long_read (& new -> usage ));
492
-
493
- /*
494
- * NOTE! This uses 'get_new_cred()' rather than 'get_cred()'.
495
- *
496
- * That means that we do not clear the 'non_rcu' flag, since
497
- * we are only installing the cred into the thread-synchronous
498
- * '->cred' pointer, not the '->real_cred' pointer that is
499
- * visible to other threads under RCU.
500
- */
501
- get_new_cred ((struct cred * )new );
502
- old = override_creds_light (new );
503
-
504
- kdebug ("override_creds() = %p{%ld}" , old ,
505
- atomic_long_read (& old -> usage ));
506
- return old ;
507
- }
508
- EXPORT_SYMBOL (override_creds );
509
-
510
- /**
511
- * revert_creds - Revert a temporary subjective credentials override
512
- * @old: The credentials to be restored
513
- *
514
- * Revert a temporary set of override subjective credentials to an old set,
515
- * discarding the override set.
516
- */
517
- void revert_creds (const struct cred * old )
518
- {
519
- const struct cred * override = current -> cred ;
520
-
521
- kdebug ("revert_creds(%p{%ld})" , old ,
522
- atomic_long_read (& old -> usage ));
523
-
524
- revert_creds_light (old );
525
- put_cred (override );
526
- }
527
- EXPORT_SYMBOL (revert_creds );
528
-
529
479
/**
530
480
* cred_fscmp - Compare two credentials with respect to filesystem access.
531
481
* @a: The first credential
0 commit comments