Page MenuHomeFreeBSD

devd.conf: add tpm rule
AbandonedPublic

Authored by tstruk_gmail.com on Dec 1 2022, 1:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 22, 8:42 AM
Unknown Object (File)
Aug 11 2025, 4:21 AM
Unknown Object (File)
Aug 4 2025, 10:18 AM
Unknown Object (File)
Aug 3 2025, 8:23 AM
Unknown Object (File)
Aug 2 2025, 5:13 PM
Unknown Object (File)
Jul 28 2025, 4:23 AM
Unknown Object (File)
Jul 5 2025, 1:34 AM
Unknown Object (File)
Jul 1 2025, 3:39 AM
Subscribers

Details

Reviewers
lwhsu
ygy
Group Reviewers
Contributor Reviews (src)
Summary

Add a tpm udev rule to devd.conf

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Wouldn't stuff like this be better in devfs.conf?

In D37577#854319, @imp wrote:

Wouldn't stuff like this be better in devfs.conf?

As far as I know devfs works on mount time. I need this to work on kldload time.

In D37577#854319, @imp wrote:

Wouldn't stuff like this be better in devfs.conf?

As far as I know devfs works on mount time. I need this to work on kldload time.

It works for any device that's added after mount time. See devfs.conf(5).

In D37577#854502, @imp wrote:
In D37577#854319, @imp wrote:

Wouldn't stuff like this be better in devfs.conf?

As far as I know devfs works on mount time. I need this to work on kldload time.

It works for any device that's added after mount time. See devfs.conf(5).

I have read that. This is what it says:

The devfs.conf file provides an easy way to set ownership and permissions,
or create links for devices available at boot.
It does not work for devices plugged in and out after the system is up
and running, e.g. USB devices. See devfs.rules(5) for setting ownership
and permissions for all device nodes, and devd.conf(5) for actions to be
taken when devices are attached or detached.

See: https://www.freebsd.org/cgi/man.cgi?devfs.conf

/dev/tpm0 is created on kldload time. After boot.

@imp I think it can be done using devfs.rules. I will try that instead of devd.conf.