obexapp 1.4.5
Maksim Yevmenkin
maksim.yevmenkin at gmail.com
Wed Feb 21 17:55:37 UTC 2007
Iain,
> One problem that I have found, is that the "-u" option does not work
> properly - well, the setgid()/setuid() does work but the
> OBEX_ServerRegister() fails because the process no longer has privilege to
> register services..
well, the sdp_session_open() is called before setgid()/setuid() so
sdpd will mark this session as "privileged". once sdp session is open,
obexapp can drop its privileges and still be able to register service
with sdpd.
> I had to change the privilege checking part of sdpd(8) for NetBSD since we
> do not have the LOCAL_PEERCRED message and I wonder if this is related to
> that.. I guess the following works fine in FreeBSD?
>
> # obexapp -s -S -C 10 -u user
yes, it works just fine.
i guess, for the sake of compatibility, i could change libsdp/sdpd to
something similar to LOCAL_CREDS (or whatever supported by BSDs),
where local sdp client is expected to send its credentials right after
the session is opened. this would require minor change to libsdp's
sdp_open_local and sdpd(8).
thanks,
max
More information about the freebsd-bluetooth
mailing list