org.bluez...PolicySet(5)

πŸ’– NAME πŸ’–

okay bestie, this is the org.bluez.AdminPolicySet moment β€” the BlueZ D-Bus AdminPolicySet API documentation β€” and you’re reading the org.bluez...PolicySet(5) manual page. yes, the manual name said what it said. 🫢

✨ DESCRIPTION ✨

This API provides the methods to control the behavior of bluetoothd(8) as an administrator. main-character admin energy only. πŸ‘‘

The AdminPolicySet1 interface provides methods to set policies. Once the policy is set successfully, it will affect all clients and stay persistently even after restarting bluetoothd(8). The only way to clear it is to overwrite the policy with the same method. no sneaky side door, bestie. periodt. πŸ’…

πŸ¦‹ INTERFACE πŸ¦‹

  • Service β€” org.bluez
  • Interface β€” org.bluez.AdminPolicySet1 [experimental]
  • Object path β€” [variable prefix]/{hci0,hci1,...}
  • Used by β€” bluetoothctl-admin(1)

🌸 Methods 🌸

πŸ’œ void SetServiceAllowList(array{string} UUIDs)

Sets the service allowlist by specifying service UUIDs. slay. ✨

When called, bluetoothd(8) will block incoming and outgoing connections to the service not in UUIDs for all of the clients. yes, all of them. 😭

Any subsequent calls to this method will supersede any previously set allowlist values. Calling this method with an empty array will allow any service UUIDs to be used. The default value is an empty array. πŸŽ€

Possible errors:

  • org.bluez.Error.InvalidArguments
  • org.bluez.Error.Failed

Examples:

bluetoothctl
       > admin.allow [clear/uuid1 uuid2 ...]

mwah πŸ’– that’s the whole page, bestie. source/version: BlueZ, dated October 2023. go be iconic with your admin policies. πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from