tcsd reports the following error at boot:
Feb 25 19:45:15 thinkpad TCSD: TrouSerS ERROR: TCSD config file (/usr/local/etc/tcsd.conf) must be user/group root/_tss
ls -la /usr/local/etc/tcsd.conf reports:
-rw------ 1 _tss _tss 7031 Aug 21 2020 /usr/local/etc/tcsd.conf
I applied 'chown root: /usr/local/etc/tcsd.conf' and rebooted. The same error message appears.
Checking /usr/local/etc/rc.d/tcsd I see the following line:
/usr/sbin/chown _tss:_tss /usr/local/etc/tcsd.conf
This leaves tcsd unusable.
A possible work-around in /usr/local/etc/rc.d/tcsd:
/usr/bin/install -d -m 0700 -o root -g _tss \
/var/run/tpm /var/run/ima /usr/local/var/lib/tpm
/usr/sbin/chown root:_tss \
/bin/chmod 0640 \
Above work-around seems to work. However, I see the following error when starting tcsd:
Feb 25 21:40:34 thinkpad TCSD[TDDL]: - TrouSerS ioctl: (25) Inappropriate ioctl for device
I encounter exactly the same problem with tics (which is unable to start).
This is on FreeBSD 12.2-RELEASE with up-to-date Ports-Tree (27th of February 2021).
trying to switch file owner to root and setting file mode to 640 then gives other problems with accessing a device, etc.
Anything else I can try?
This is within VM (Parallels on MacOS)
(In reply to Holger Kipp from comment #3)
tcsd. I hate autocorrect...
(In reply to unitrunker from comment #1)
Same solution in /usr/local/etc/rc.d/tcsd
Works for me :-)