summaryrefslogtreecommitdiffstats
path: root/ncr-data.c
Commit message (Collapse)AuthorAgeFilesLines
* removed the data type.Nikos Mavrogiannopoulos2010-07-261-303/+0
|
* ncr_int.h -> ncr-int.hNikos Mavrogiannopoulos2010-07-251-1/+1
|
* Added a support for reading session data directly from userspace.Nikos Mavrogiannopoulos2010-07-241-0/+2
|
* Append_flag was removed.Nikos Mavrogiannopoulos2010-07-231-27/+6
|
* Revert "initial support for userspace data."Nikos Mavrogiannopoulos2010-07-231-178/+47
| | | | This reverts commit e7828004e40592c8cffc9235f72440c802905e16.
* Revert "Modified NCR-USER API to "simplify" and allow setting of size of ↵Nikos Mavrogiannopoulos2010-07-231-148/+40
| | | | | | data structure without special system call." This reverts commit 5689c9734223fb349bba526d620823a803c3b67e.
* Modified NCR-USER API to "simplify" and allow setting of size of data ↵Nikos Mavrogiannopoulos2010-07-211-40/+148
| | | | structure without special system call.
* initial support for userspace data.Nikos Mavrogiannopoulos2010-07-211-47/+178
|
* Fix copy_{from,to}_user error handlingMiloslav Trmač2010-07-191-19/+19
| | | | | | These functions return a positive number, not an error code, on failure. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Free data on error its descriptor to user-spaceMiloslav Trmač2010-07-191-5/+17
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Fix a race in ncr_data_set.Miloslav Trmač2010-07-191-3/+6
| | | | | | | | | | | More than one thread could could pass the if (... > max_data_size) test, leading to multiple executions of "data->data_size += get.data_size", resulting in data->data_size > data->max_data_size. This is a minimal fix that ensures kernel data structure consistency, but the behavior won't look atomic from user space (two threads appending N and M bytes could result in N, M, or N+M more bytes). It relies on the assumption that reads and writes of size_t are atomic.
* Describe why there is no integer overflow.Miloslav Trmač2010-07-191-0/+4
|
* Fix error paths in ncr_data_initMiloslav Trmač2010-07-191-6/+13
|
* Several fixes related to checks with copy_from/to_user.Nikos Mavrogiannopoulos2010-06-171-1/+8
|
* Added checking in copy_from_user and copy_to_user.Nikos Mavrogiannopoulos2010-06-171-18/+47
|
* Use current_euid() and task_pid_nr(current) to get identifiers for owners ↵Nikos Mavrogiannopoulos2010-06-171-5/+6
| | | | (for imposed limits).
* Descriptors start at 1.Nikos Mavrogiannopoulos2010-06-171-1/+1
|
* Added small subsystem for storage (no storage occuring yet).Nikos Mavrogiannopoulos2010-06-171-11/+9
|
* Added deinitialization of limits on module unloading. Better cleanup of ↵Nikos Mavrogiannopoulos2010-06-171-2/+7
| | | | unused data.
* Added ncr_key_import/export, generate and info. Those work with secret keys.Nikos Mavrogiannopoulos2010-06-171-5/+2
| | | | Added test program for those.
* Added some initial for of key. Added helper functions to enforce per user ↵Nikos Mavrogiannopoulos2010-06-171-36/+39
| | | | and per process limits.
* Separated data functionality to ncr-data.c.Nikos Mavrogiannopoulos2010-06-171-0/+256