<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def drop_capabilities(keep=[]):
 """ Drop all capabilities this process has. @param keep: list of capabilities to not drop """

    capdata = (libc.CapData * 2)()
    for cap in keep:
        capdata[0].effective |= (1 << cap)
        capdata[0].permitted |= (1 << cap)
    libc.capset(ctypes.byref(libc.CapHeader(version=libc.LINUX_CAPABILITY_VERSION_3, pid=0)),
                ctypes.byref(capdata))