All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: "Daniel J Walsh" <dwalsh@redhat.com>, 오대성 <ds.oh@lge.com>,
	SELinux <selinux@tycho.nsa.gov>
Subject: Re: Plz ask for help :)
Date: Tue, 01 Apr 2014 09:06:36 -0400	[thread overview]
Message-ID: <533AB9DC.9050300@tycho.nsa.gov> (raw)
In-Reply-To: <533AB41A.7000403@redhat.com>

On 04/01/2014 08:42 AM, Daniel J Walsh wrote:
>> But, selinux_complete_init function of security/selinux/hook.c is not
>> called.
>>
>> And if i run “ls -Z“ command, security context is not printed.
>>
>> $ ls -Z
>>
>> ? apparmor    ? capability.c
>>
>>  
>>
>> selinux_init function is called. but selinux_complete_init function is
>> not called and security context is not printed.
>>
>>  
>>
>> *what should i try ? please help me.*

You need to load a policy into the kernel.   Normally this is done by
the init program.

Was your init program built with SELinux support enabled?  And do you
have a policy file in the expected location?

Look for output from init as well to help debug.

      reply	other threads:[~2014-04-01 13:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <002301cf4cc0$4138b160$c3aa1420$@oh@lge.com>
     [not found] ` <533967A3.70201@redhat.com>
     [not found]   ` <002901cf4d4b$dfb10500$9f130f00$@oh@lge.com>
2014-04-01 12:42     ` Plz ask for help :) Daniel J Walsh
2014-04-01 13:06       ` Stephen Smalley [this message]

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=533AB9DC.9050300@tycho.nsa.gov \
    --to=sds@tycho.nsa.gov \
    --cc=ds.oh@lge.com \
    --cc=dwalsh@redhat.com \
    --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.