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

ncm-ssh: Invalid configuration file: /dev/stdin #1074

Open
nowack73 opened this issue Mar 15, 2017 · 6 comments
Open

ncm-ssh: Invalid configuration file: /dev/stdin #1074

nowack73 opened this issue Mar 15, 2017 · 6 comments

Comments

@nowack73
Copy link

Running ncm-ssh (version 17.2) on SL7.3 in a non-interactive mode (i.e. started by ncm-cdispd) results in an error:

2017/03/15-13:54:52 -----------------------------------------------------------
2017/03/15-13:54:52 [ERROR] Invalid configuration file: /dev/stdin: Permission denied

2017/03/15-13:54:52 [INFO] configure on component ssh executed, 1 errors, 0 warnings

If I run ncm-ncd --configure ssh interactively in shell, ncm-ssh succeeds:

2017/03/15-13:56:59 -----------------------------------------------------------
2017/03/15-13:56:59 [INFO] configure on component ssh executed, 0 errors, 0 warnings
@jrha
Copy link
Member

jrha commented Mar 15, 2017

I believe this is related to which selinux context the component runs in (we also see this error).

@nowack73
Copy link
Author

Thanks, for the hint.
I set AII_OSINSTALL_SELINUX to 'disabled', but somehow selinux has been installed. With SL6, this was never a problem, but it seems to be a problem with SL7.

@nowack73
Copy link
Author

Does this mean that ncm-ssh is not compatible with selinux?

@jrha
Copy link
Member

jrha commented Mar 15, 2017

I hope not, I've been looking at this problem today as well (although mostly by trying to ensure selinux is disabled), but we do have use cases that require selinux.

@stdweird
Copy link
Member

@nowack73 is there a -selinux in the kickstart file? AII_OSINSTALL_SELINUX disabled should not even install selinux (unless something else pulls it in).

@nowack73
Copy link
Author

nowack73 commented Mar 15, 2017

Yes, the kickstart file contains:

selinux --disabled

and

%packages --ignoremissing
-selinux*

But in the ks-post-install phase, some dependencies seem to require selinux-policy and that creates a default /etc/selinux/config with SELINUX=enforcing.

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

No branches or pull requests

3 participants