Skip to content

Commit

Permalink
Security: Documentation: Replace deprecated :c:func: Usage
Browse files Browse the repository at this point in the history
Replace :c:func: with ``func()`` as the previous usage is deprecated.
Remove an extra ')' to fix broken cross reference.

Signed-off-by: Puranjay Mohan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
  • Loading branch information
puranjaymohan authored and Jonathan Corbet committed Jul 6, 2020
1 parent 8286de7 commit 4d010d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Documentation/security/credentials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,9 @@ still at this point.

When replacing the group list, the new list must be sorted before it
is added to the credential, as a binary search is used to test for
membership. In practice, this means :c:func:`groups_sort` should be
called before :c:func:`set_groups` or :c:func:`set_current_groups`.
:c:func:`groups_sort)` must not be called on a ``struct group_list`` which
membership. In practice, this means groups_sort() should be
called before set_groups() or set_current_groups().
groups_sort() must not be called on a ``struct group_list`` which
is shared as it may permute elements as part of the sorting process
even if the array is already sorted.

Expand Down

0 comments on commit 4d010d1

Please sign in to comment.