creating a new user

Sandra Julieta Rueda Rodriguez ruedarod at cse.psu.edu
Thu Sep 28 01:49:43 UTC 2006


Hello,

I just executed the given instructions (semodule -n -r) to fix the problem
with semodule and now everything is working ok. Thanks.

Now I have a different problem ....

I am trying to create a new user. I added it to the file local.users in
the src directory and also to /etc/selinux/strict/users/local.users. I
tried first to modify only the one in src but it did not work, so I also
modified the other one.

Since I am working based on refpolicy (I already run make install-src) and
the instructions I have found are for previous versions I am not sure if I
need to run make policy, and then install.  Just to be sure I tried, make
policy worked ok, but make install does not work ...
I guess I am doing something wrong ... could anybody help me with that?

This is the output of make install:
Validating strict file_contexts.
/usr/sbin/setfiles -q -c /etc/selinux/strict/policy/policy.20
file_contexts
libsepol.context_from_record: user rueda is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert rueda:staff_r:staff_t to sid
file_contexts:  line 2149 has invalid context
make: *** [/etc/selinux/strict/contexts/files/file_contexts] Error 1

rueda is the user I am trying to create by adding it to the local.users
file. I am also trying to use it as part of the context for a file.

Thanks in advance,
Sandra





More information about the fedora-selinux-list mailing list