All of lore.kernel.org
 help / color / mirror / Atom feed
* testsuite for meta-selinux
@ 2015-12-06  5:47 Suram Suram
  2015-12-08 12:59 ` Voiculescu, BogdanX A
  2015-12-11  6:47 ` systemd postinstall start service Dvorkin Dmitry
  0 siblings, 2 replies; 3+ messages in thread
From: Suram Suram @ 2015-12-06  5:47 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 405 bytes --]

Hi,
Iam trying to use the selinux testsuite taken from
SELinuxProject<https://github.com/SELinuxProject>/selinux-testsuite<https://github.com/SELinuxProject/selinux-testsuite>
When trying to compile, it is complaining with the following error
ERROR: You must have selinux-policy-devel installed.

I would like to know how to enable selinux-policy-devel in the meta-selinux layer.

Regards
Suram

[-- Attachment #2: Type: text/html, Size: 2977 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: testsuite for meta-selinux
  2015-12-06  5:47 testsuite for meta-selinux Suram Suram
@ 2015-12-08 12:59 ` Voiculescu, BogdanX A
  2015-12-11  6:47 ` systemd postinstall start service Dvorkin Dmitry
  1 sibling, 0 replies; 3+ messages in thread
From: Voiculescu, BogdanX A @ 2015-12-08 12:59 UTC (permalink / raw)
  To: Suram Suram, yocto

[-- Attachment #1: Type: text/plain, Size: 1013 bytes --]

Hi Suram,
Package 'selinux-policy-devel' is needed to be installed on your host.

In https://github.com/SELinuxProject/selinux-testsuite is specified what you need to install (example is for Fedora or RHEL):

yum install perl-Test perl-Test-Harness selinux-policy-devel gcc libselinux-devel net-tools netlabel_tools iptables

One of them is "selinux-policy-devel"

BR,
Bogdan

From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Suram Suram
Sent: Sunday, December 06, 2015 7:48 AM
To: yocto@yoctoproject.org
Subject: [yocto] testsuite for meta-selinux

Hi,
Iam trying to use the selinux testsuite taken from
SELinuxProject<https://github.com/SELinuxProject>/selinux-testsuite<https://github.com/SELinuxProject/selinux-testsuite>
When trying to compile, it is complaining with the following error
ERROR: You must have selinux-policy-devel installed.

I would like to know how to enable selinux-policy-devel in the meta-selinux layer.

Regards
Suram

[-- Attachment #2: Type: text/html, Size: 5579 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* systemd postinstall start service
  2015-12-06  5:47 testsuite for meta-selinux Suram Suram
  2015-12-08 12:59 ` Voiculescu, BogdanX A
@ 2015-12-11  6:47 ` Dvorkin Dmitry
  1 sibling, 0 replies; 3+ messages in thread
From: Dvorkin Dmitry @ 2015-12-11  6:47 UTC (permalink / raw)
  To: yocto

Hello!

I have a recipe that can be installed into image using postinstall RPM 
scriptlet only.
It's an archive wrapped with a shell script.
During the do_rootfs step this RPM is installed such a way: executional 
archive placed into /opt/.
Then during the first system load systemd runs it's postinstall scriptlet

scriptlet is simple:

/opt/my_server.bin.sh
systemctl enable my_server.service
systemctl daemon-reload
systemctl start my_server.service

In my system when systemd runs this postinstall scriptlet it's executed, 
system is loaded, service is enabled, but not started.
service state is "enabled, but inactive (died)"
During the postinstall scriptlet execution at systemd first load I see 
message that my service is stopping instead of starting.
After reboot my_server.service is enabled and started.

Looks like systemd doesn't want to start service or it stopping it 
immediately after postinstall.
What can I do to start it on first load after postinstall ?

my_service.service have such a settings:

[Unit]
Description=my_server
After=syslog.target

[Service]
Type=simple
Restart=on-failure

Thanks!


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-11  6:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-06  5:47 testsuite for meta-selinux Suram Suram
2015-12-08 12:59 ` Voiculescu, BogdanX A
2015-12-11  6:47 ` systemd postinstall start service Dvorkin Dmitry

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.