From ddc0d54b784ca01a2d9a582fc9aa1f31dd57ed08 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 30 Sep 2021 11:38:10 -0400 Subject: sepolicy: Add deprecation comment for `_get_path()` Came up in review https://github.com/ostreedev/ostree/pull/2447#issuecomment-931428312 --- src/libostree/ostree-sepolicy.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libostree/ostree-sepolicy.c b/src/libostree/ostree-sepolicy.c index 8aa1df96..9b2ce0ab 100644 --- a/src/libostree/ostree-sepolicy.c +++ b/src/libostree/ostree-sepolicy.c @@ -499,7 +499,11 @@ ostree_sepolicy_new_at (int rootfs_dfd, /** * ostree_sepolicy_get_path: - * @self: + * @self: A SePolicy object + * + * This API should be considered deprecated, because it's supported for + * policy objects to be created from file-descriptor relative paths, which + * may not be globally accessible. * * Returns: (transfer none): Path to rootfs */ -- cgit v1.2.1