- sudo apt-get -y install pep8
- pep8 $(find . -type f | grep -E "\.py$")
- sudo apt-get -y install automake autoconf libtool libssl-dev sed make gawk sed bash
- dh-exec
-- sudo pip install twisted
+ dh-exec python-twisted
- git clone https://github.com/stefanberger/libtpms
- cd libtpms
- git checkout origin/tpm2-preview.rev146 -b tpm2-preview.rev146
ctrlfd.connect(sock_path)
print("Sending data fd over ctrl fd...")
if sys.version_info[0] < 3:
- sendmsg.sendmsg(ctrlfd, str(cmd_set_data_fd),
- [(socket.SOL_SOCKET,
- sendmsg.SCM_RIGHTS,
- struct.pack("i", _fd.fileno()))])
+ sendmsg.send1msg(ctrlfd.fileno(), str(cmd_set_data_fd), 0,
+ [(socket.SOL_SOCKET,
+ sendmsg.SCM_RIGHTS,
+ struct.pack("i", _fd.fileno()))])
else:
ctrlfd.sendmsg([cmd_set_data_fd],
[(socket.SOL_SOCKET, socket.SCM_RIGHTS, fds)])