summaryrefslogtreecommitdiffstats
path: root/libcutils/qtaguid.c
Commit message (Collapse)AuthorAgeFilesLines
* libcutils: turn on -WerrorMark Salyzyn2014-05-011-5/+2
| | | | | | - Deal with some -Wunused / -Wunused-variable issues Change-Id: I28c23fb213382a392ec30935749fb359e072d664
* libcutils: 64-bit compile issuesMark Salyzyn2014-03-071-9/+11
| | | | | | - Use inttypes.h to print uint64_t values. Change-Id: Ia10a3b67cadcce282563467a464ec07066cc2051
* Support full 32 bits for socket tags.Jeff Sharkey2012-05-021-3/+1
| | | | | Bug: 5321184 Change-Id: Iabd668674e60626caafc9b66b29fdbddc3724f58
* Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block2012-01-041-4/+4
| | | | | Bug: 5449033 Change-Id: I4951baa981f09a84ce483e3d1bd0f9ebe009035f
* Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGESteve Block2011-10-261-5/+5
| | | | | Bug: 5449033 Change-Id: Ib453f869977a6e909095a578bbf0420851f887d2
* qtaguid: shhhh. LOGI -> LOGVJP Abgrall2011-09-221-5/+7
| | | | | | | Less verbose output. Bug: 5360129 Change-Id: Id32a7c61d51b6a16f50a5c8bcc75a2feaa0e34b1
* libcutils: qtaguid: Support new functions, add tag resource tracking.JP Abgrall2011-09-141-22/+132
| | | | | | | | | | | | | | | | | | | | | | | * Add support for deleteTagData(tag, uid) setCounterSet(counterSetNum, uid) setPacifier(on) * Add resource tracking (If only kernel process termination had a hook) Because the xt_qtaguid netfilter module needs to keep track of tagged sockets, it needs a way to know when the process owning the socket has died. Normally the app will untag the sockets. But not on crash. So the process opens the qtaguid misc dev, which is closed on crash, at which point the xt_qtaguid can force-untag the processes sockets, and thus allowing their refcount to go down and release them. * Add pacifier support Add function to enable/disable pacification of the xt_qtaguid kernel module. (mostly for debugging) Change-Id: I7f2228e65208046dd37ec1c7407ee307d5ba9b99
* libcutils: qtaguid: support socket untagging, return errors.Ashish Sharma2011-08-071-13/+36
| | | | | | | | | - Enable and rename qtaguid_tagSocket() - Add qtaguid_untagSocket() - Return kernel errors to caller Change-Id: I8e33c8832b7f6b24ed9081f36ce1ea9ae6b099c0 Signed-off-by: Ashish Sharma <ashishsharma@google.com>
* Add communication support for xt_qtaguid(network traffic accounting) kernel ↵Ashish Sharma2011-07-081-0/+44
module. Change-Id: Ie0fb5b593987c53ee6f906fe6e0caab5a581d5a1