Thursday, 2022-03-24

T42<edp_17> @elros34 : "sh: getenforce: command not found"06:50
T42<elros34> should be somwhere in /system06:51
T42<edp_17> Oh, yeah, it was in /system/bin/getenforce: Disabled06:55
T42<elros34> so you disabled selinux06:56
T42<edp_17> Setting the selinux=1 probably wasn't enough. I think there is something about it in defconfig too.06:57
T42<edp_17> I just checked and I have this in BOARD_KERNEL_CMDLINE := selinux=106:59
T42<elros34> selinux=1 is not even needed unless you added =0. On android selinux is enabled06:59
T42<edp_17> In defconfig I still have:  CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=007:01
T42<elros34> so you know what was the reason now07:01
T42<edp_17> That line in wasn't there, I've added. Can I remove it? (this: BOARD_KERNEL_CMDLINE := selinux=1)07:02
T42<edp_17> Oh, and what about if I remove both from defconfig:07:03
T42<elros34> sure you can remove all selinux changes you made, the only relevant may be about setting permissive mode07:03
T42<edp_17> I see. I have this in defconfig: CONFIG_SECURITY_SELINUX_PERMISSIVE=y (re @elros34: sure you can remove ...)07:04
T42<edp_17> I'll remove the other two *BOOTPARAM* and *CMDLINE*07:05
T42<edp_17> Thanks and I'll come back with a report.07:05
T42<edp_17> @elros34 : Another question. When I try changing password of defaultuser, I get this: "passwd: Unknown user name 'defaultuser'."07:09
T42<elros34> not sure, maybe it's not created. defaultuser/nemo is set up at first boot but not sure at which point07:11
T42<edp_17> I see.07:12
T42<edp_17> There were some missing libs: "" "" ""07:12
T42<elros34> it's common and you can find solution even in collabedit07:13
T42<edp_17> and added file_contexts and policy.30 files from device to /etc/selinux07:13
T42<edp_17> Before I did this two fixes, defaultuser was created. I mean the start process went further than this time.07:14
T42<edp_17> So, it looks like fixing those two problems ended up the device is crashing earlier than before. I'll install the new kernel to see what happens.07:16
T42<edp_17> @elros34 : Enabling selinux has solved a few things. The device started the init setup process. Then crashed before setting up the login pin. It rebooted and continued the init process and crashed again when started to search for wifi networks. It rebooted and now it sucks on  the sailfish os logo.07:33
T42<edp_17> I'll rebuild/install droid-hal packages aswell to see whether that makes any difference.07:34
T42<edp_17> When the device is attached to the PC it keeps chrashing/rebooting in the middle of init process.07:38
T42<edp_17> And there are some more missing libs:
T42<elros34> do you have ld.config*.txt somewhere in /system?07:43
T42<edp_17> Yes, I have two:08:44
T42<edp_17> /system/etc/ld.config.txt08:44
T42<edp_17> /system/etc/swcodec/ld.config.txt08:44
T42<edp_17> @elros34 ^08:45
T42<edp_17> @elros34 : Tried to get better logcat after reboot:
T42<edp_17> Now the /system/bin/getenforce returns Permissive08:55
T42<edp_17> @elros34 : Do you remember the error I mentioned regarding lib{dl,c,m}.so files when building droid-hal? The solution was to add these three unlink lines into
T42<edp_17> The script couldn't copy the files because they were there as symlinks already.11:08
T42<edp_17> I've build a new image and installed it on device. That's sorted the reboot issue and the initial process went through fine. However, there are problems.11:33
T42<edp_17> The main one is with media.swcodec:
T42<edp_17> I got that log when turned wifi on.11:37
T42<elros34> @edp_17 compare that ld.config.txt in /system with ld.config.29.txt in sparse-10. If they are similar then adjust droid-hal-early-init.sh18:06
T42<elros34> next time use either '| grep -v audit' when generating logs or figure out how to suppress this useless spam18:28
T42<edp_17> I'll compare them. Can I turn that audit off somehow? Is necessary to keep it on?18:44
T42<elros34> I do not know, maybe audit=0 will not break selinux but I didn't try18:50
T42<edp_17> I've nothing to lose so will try that. :) Thanks.18:57
T42<b100dian> I remember this :( (re @edp_17: The script couldn't ...)19:43
T42<b100dian> Always thought it was PBKAC19:44
Mister_Magistertfw you click random logs and find yourself19:54
Mister_Magistergood old PEBKAC19:55
T42<edp_17> What's PBKAC or PEBKAC?22:40
T42<edp_17> @b100dian : What was your solution for those lib{dl,c,m}.so files?22:41

Generated by 2.17.1 by Marius Gedminas - find it at!