You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libselinux/src/label_media.c +85
In init, the supported types are SELABEL_OPT_PATH, SELABEL_OPT_UNUSED, SELABEL_OPT_VALIDATE and SELABEL_OPT_DIGEST.
Type SELABEL_OPT_BASEONLY is not supported.
/* Process arguments */
while (n) {
n--;
switch(opts[n].type) {
case SELABEL_OPT_PATH:
path = opts[n].value;
break;
case SELABEL_OPT_UNUSED:
case SELABEL_OPT_VALIDATE:
case SELABEL_OPT_DIGEST:
break;
default:
errno = EINVAL;
return -1;
}
}
So when we go to type SELABEL_OPT_BASEONLY, the init func return failure.
The text was updated successfully, but these errors were encountered:
Since commit 65c8fd4 ("libselinux: fail selabel_open(3) on invalid
option") selabel_open(3) rejects options not supported for the
respective backend. Pass SELABEL_OPT_BASEONLY only if the file backend
is selected.
Reported-by: zgzxx (SELinuxProject#427)
Fixes: 65c8fd4 ("libselinux: fail selabel_open(3) on invalid option")
Signed-off-by: Christian Göttsche <[email protected]>
Acked-by: James Carter <[email protected]>
Since commit 65c8fd4 ("libselinux: fail selabel_open(3) on invalid
option") selabel_open(3) rejects options not supported for the
respective backend. Pass SELABEL_OPT_BASEONLY only if the file backend
is selected.
Reported-by: zgzxx (#427)
Fixes: 65c8fd4 ("libselinux: fail selabel_open(3) on invalid option")
Signed-off-by: Christian Göttsche <[email protected]>
Acked-by: James Carter <[email protected]>
After the commit 65c8fd4, the following error is reported:
libselinux/utils/selabel_digest.c +74
The main function sets the type to SELABEL_OPT_PATH, SELABEL_OPT_BASEONLY and SELABEL_OPT_DIGEST.
libselinux/src/label_media.c +85
In init, the supported types are SELABEL_OPT_PATH, SELABEL_OPT_UNUSED, SELABEL_OPT_VALIDATE and SELABEL_OPT_DIGEST.
Type SELABEL_OPT_BASEONLY is not supported.
So when we go to type SELABEL_OPT_BASEONLY, the init func return failure.
The text was updated successfully, but these errors were encountered: