Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shadow uses obsolete SELinux API #182

Closed
bigon opened this issue Sep 26, 2019 · 0 comments · Fixed by #183
Closed

shadow uses obsolete SELinux API #182

bigon opened this issue Sep 26, 2019 · 0 comments · Fixed by #183

Comments

@bigon
Copy link

bigon commented Sep 26, 2019

Hello,

It seems that the shadow source package is using obsolete SELinux API,
for example:

In file included from passwd.c:46:
/usr/include/selinux/flask.h:5:2: warning: #warning "Please remove any #include's of this header in your source code." [-Wcpp]
 #warning "Please remove any #include's of this header in your source code."
  ^~~~~~~
/usr/include/selinux/flask.h:6:2: warning: #warning "Instead, use string_to_security_class() to map the class name to a value." [-Wcpp]
 #warning "Instead, use string_to_security_class() to map the class name to a value."
  ^~~~~~~
In file included from passwd.c:47:
/usr/include/selinux/av_permissions.h:1:2: warning: #warning "Please remove any #include of this header in your source code." [-Wcpp]
 #warning "Please remove any #include of this header in your source code."
  ^~~~~~~
/usr/include/selinux/av_permissions.h:2:2: warning: #warning "Instead, use string_to_av_perm() to map the permission name to a value." [-Wcpp]
 #warning "Instead, use string_to_av_perm() to map the permission name to a value."

That should be fixed as it could lead to security issues (or at least
weakened security) for people using SELinux

Kind regards,

Laurent Bigonville

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant