From: "Romix" <romix@php.cd>
To: <russell@coker.com.au>, <selinux@tycho.nsa.gov>
Subject: RE: how to add a user with rights to login via ssh on selinux?
Date: Tue, 9 Sep 2003 15:47:55 +0200 [thread overview]
Message-ID: <006101c376d8$fe52ab30$4200000a@roadwarrior> (raw)
In-Reply-To: <200309092312.30592.russell@coker.com.au>
first thanks for your help :)
> > yes there are some messages, but i don´t understand them (is that
> > explained somewhere?):
> >
> > avc: denied { read } for pid=23997 exe=/usr/sbin/sshd
> > path=socket:[257597] dev=00:00 ino=257597
> > scontext=root:sysadm_r:sysadm_chkpwd_t
> > tcontext=root:sysadm_r:sysadm_chkpwd_t tclass=unix_stream_socket
>
> This is wrong. Either sshd has the wrong type or you started
> it in the wrong manner.
>
> Run "ls --context /usr/sbin/sshd" to see the type of the
> file, it should be sshd_exec_t.
yes it is:
-rwxr-xr-x root root system_u:object_r:sshd_exec_t
/usr/sbin/sshd
> > > Is sshd running in the correct context? "ps --context |
> > > grep sshd"
> > > will show you the context.
> >
> > 23994 243 root:sysadm_r:sysadm_chkpwd_t grep sshd
> >
> > is sysadm_chkpwd_t the right domain?
>
> That's the context of the "grep" process, and it's not the
> right domain for sshd or for grep.
sorry, i posted the wrong line, but sshd was running in the same context:
23618 243 root:sysadm_r:sysadm_chkpwd_t /usr/sbin/sshd
so i changed it (i executed "/etc/init.d/sshd start" as root from a local
login and not via ssh):
24176 195 root:staff_r:staff_t /usr/sbin/sshd
but my user setest still can´t login...
and i still have a lot of avc messages:
avc: denied { search } for pid=24197 exe=/bin/bash path=/sbin dev=03:03
ino=11151 scontext=root:staff_r:staff_chkpwd_t
tcontext=system_u:object_r:sbin_t tclass=dir
avc: denied { search } for pid=24197 exe=/bin/bash path=/opt dev=03:03
ino=11148 scontext=root:staff_r:staff_chkpwd_t
tcontext=system_u:object_r:opt_t tclass=dir
avc: denied { syslog_read } for pid=24205 exe=/bin/dmesg
scontext=root:staff_r:staff_chkpwd_t tcontext=system_u:system_r:kernel_t
tclass=system
avc: denied { append } for pid=24992 exe=/usr/bin/ntpd
path=/var/log/ntpd.log dev=03:03 ino=110570 scontext=root:staff_r:staff_t
tcontext=root:object_r:var_log_t tclass=file
avc: denied { getattr } for pid=24197 exe=/bin/bash path=/bin/ls
dev=03:03 ino=91418 scontext=root:staff_r:staff_chkpwd_t
tcontext=system_u:object_r:ls_exec_t tclass=file
avc: denied { execute } for pid=24208 exe=/bin/bash path=/bin/ls
dev=03:03 ino=91418 scontext=root:staff_r:staff_chkpwd_t
tcontext=system_u:object_r:ls_exec_t tclass=file
avc: denied { execute_no_trans } for pid=24208 exe=/bin/bash path=/bin/ls
dev=03:03 ino=91418 scontext=root:staff_r:staff_chkpwd_t
tcontext=system_u:object_r:ls_exec_t tclass=file
avc: denied { read } for pid=24208 path=/bin/ls dev=03:03 ino=91418
scontext=root:staff_r:staff_chkpwd_t tcontext=system_u:object_r:ls_exec_t
tclass=file
avc: denied { read } for pid=24208 exe=/bin/ls
scontext=root:staff_r:staff_chkpwd_t
tcontext=system_u:object_r:sysctl_kernel_t tclass=file
how do i solve/change this? does someone know a good book/documentation for
selinux? all what i found was not really helpful for someone who is new to
selinux...
regards,
Romain
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2003-09-09 13:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-09 10:15 how to add a user with rights to login via ssh on selinux? Romix
2003-09-09 10:54 ` Russell Coker
2003-09-09 12:16 ` Romix
2003-09-09 13:12 ` Russell Coker
2003-09-09 13:47 ` Romix [this message]
2003-09-09 13:53 ` Russell Coker
2003-09-09 14:47 ` Romix
2003-09-09 14:39 ` Faye Coker
2003-09-09 14:42 ` Romix
2003-09-09 15:30 ` Tom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='006101c376d8$fe52ab30$4200000a@roadwarrior' \
--to=romix@php.cd \
--cc=russell@coker.com.au \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.