which tools exist for configuring SELinux /AppArmor in development cycle automatically iterations? ?

2019-02-20 Thread Lev Olshvang
 Lets Say I develop several applications and during the test of version almost all code paths are executed. So  I can take logs and build a policy and load it to the target.But then  I change code and now it calls another utility, Are there any tools that automate such  iterations ? Thx,Lev

Re: writes to /dev/kmsg

2019-02-20 Thread Constantine Shulyupin
stderr = fopen("/dev/kmsg", "w+"); fprintf(stderr, "%s:%i %s ", __FILE__, __LINE__, __func__); Call a driver. In the driver: #undef pr_fmt #define pr_fmt(fmt)"%s.c:%d %s " fmt, KBUILD_MODNAME, __LINE__, __func__ pr_debug("..."); or printk("%s:%i

Re: writes to /dev/kmsg

2019-02-20 Thread Lev Olshvang
Can you please elaborate, what you are trying to synchronize, I suppose messages from your driver are uniquely identified?19.02.2019, 19:42, "Constantine Shulyupin" :I write to /dev/kmsg when it is need to synchronize UM and driver's logs. On Tue, Feb 19, 2019 at 3:34 PM Lev Olshvang