[Samba] libsamba-policy.cpython: where it is used in samba?

Michael Tokarev mjt at tls.msk.ru
Sat May 25 11:25:41 UTC 2024


Hi!

I'm trying to find where various components of samba belongs to and where they're used.
There are quite a few files with unknown purpose.  For example, a cpython library
(python code which is to be linked to from a C program) libsamba-policy.  On current
debian it is like:

   usr/lib/x86_64-linux-gnu/libsamba-policy.cpython-311-x86-64-linux-gnu.so.0.0.1
   usr/lib/python3/dist-packages/samba/policy.cpython-311-x86_64-linux-gnu.so
   usr/lib/x86_64-linux-gnu/pkgconfig/samba-policy.cpython-311-x86_64-linux-gnu.pc

(the libraries are part of python3-samba package, the .pc file is part of samba-dev).

I don't see these are referenced anywhere.  What it is for?

Also, what it *is* to begin with?  It looks like it is a python code embeddable
into a C program, and next it's linked to with a python extension?

Can't the said python extension (samba-policy.cpython) run python code in
libsamba-policy directly, without the C/so wrapper?

Thanks,

/mjt
-- 
GPG Key transition (from rsa2048 to rsa4096) since 2024-04-24.
New key: rsa4096/61AD3D98ECDF2C8E  9D8B E14E 3F2A 9DD7 9199  28F1 61AD 3D98 ECDF 2C8E
Old key: rsa2048/457CE0A0804465C5  6EE1 95D1 886E 8FFB 810D  4324 457C E0A0 8044 65C5
Transition statement: http://www.corpit.ru/mjt/gpg-transition-2024.txt



More information about the samba mailing list