diff options
author | jmmv <jmmv@pkgsrc.org> | 2004-10-20 20:45:55 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2004-10-20 20:45:55 +0000 |
commit | 3294789b2b93fc412a4ef546d0bae3b5e454f1d3 (patch) | |
tree | e1e1be77bb574087d5ea650671978c5692b61759 /security/seahorse/patches/patch-aa | |
parent | c955cb97e5f1b7cfb85a41af7e44644e3fe7b825 (diff) | |
download | pkgsrc-3294789b2b93fc412a4ef546d0bae3b5e454f1d3.tar.gz |
Update to 0.7.4:
* Key manager now uses new file chooser dialogs
* For detached signatures, prompt when missing plain text files
* Import/Export to clipboard implemented as copy/paste
* Dragging keys into the key manager import
* All file operations work with gnome-vfs remote URIs (ie: smb, ftp, http,
etc...)
* Proper sort support for key listings
* Filter support on key manager and recipients windows
* Multiple file and folder support in nautilus
* Fixed MIME type integration with nautilus
* Rework the 'Key Properties' dialog
* Can now change primary user id, or delete user ids on a secret key
* Can sign individual user ids on a key
* Can now list signatures on a key
* Respects 'Encrypt to Self' option when encrypting files or text
* Gnome HIG (Human Interface Guidelines) compliancy fixes
* gedit plugin for encrypting/decrypting/signing/verifying text
* 'Seahorse Agent' for caching passwords on system
* Updated to a new version of GPGME (1.0)
* Fixed startup crashers
* New Key generation assistant (wizard/druid)
Diffstat (limited to 'security/seahorse/patches/patch-aa')
-rw-r--r-- | security/seahorse/patches/patch-aa | 44 |
1 files changed, 14 insertions, 30 deletions
diff --git a/security/seahorse/patches/patch-aa b/security/seahorse/patches/patch-aa index a62d0f6fe14..f03d4907174 100644 --- a/security/seahorse/patches/patch-aa +++ b/security/seahorse/patches/patch-aa @@ -1,33 +1,17 @@ -$NetBSD: patch-aa,v 1.4 2003/05/30 15:25:09 jmmv Exp $ +$NetBSD: patch-aa,v 1.5 2004/10/20 20:45:55 jmmv Exp $ ---- src/main.c.orig 2003-04-14 16:22:32.000000000 +0200 -+++ src/main.c -@@ -29,7 +29,7 @@ - #include "seahorse-libdialogs.h" +--- agent/seahorse-agent.c.orig 2004-10-15 00:12:08.000000000 +0200 ++++ agent/seahorse-agent.c +@@ -264,8 +264,12 @@ main (int argc, char *argv[]) + secmem_init (65536); - static gchar *import = NULL; --static gchar *encrypt = NULL; -+static gchar *encrypt_opt = NULL; - static gchar *sign = NULL; - static gchar *encrypt_sign = NULL; - static gchar *decrypt = NULL; -@@ -40,7 +40,7 @@ static const struct poptOption options[] - { "import", 'i', POPT_ARG_STRING, &import, 0, - N_("Import keys from the file"), N_("FILE") }, + /* We need to drop privileges completely for security */ ++#ifdef _GNU_SOURCE + if (setresuid (getuid (), getuid (), getuid ()) == -1 || + setresgid (getgid (), getgid (), getgid ()) == -1) ++#else ++ if (setuid (getuid ()) == -1 || setgid (getgid ()) == -1) ++#endif + err (1, _("couldn't drop privileges properly")); -- { "encrypt", 'e', POPT_ARG_STRING, &encrypt, 0, -+ { "encrypt", 'e', POPT_ARG_STRING, &encrypt_opt, 0, - N_("Encrypt file"), N_("FILE") }, - - { "sign", 's', POPT_ARG_STRING, &sign, 0, -@@ -137,8 +137,8 @@ main (int argc, char **argv) - return 0; - } - } -- if (encrypt != NULL) -- do_encrypt (sctx, encrypt, seahorse_op_encrypt_file, _("Encrypt file is %s")); -+ if (encrypt_opt != NULL) -+ do_encrypt (sctx, encrypt_opt, seahorse_op_encrypt_file, _("Encrypt file is %s")); - if (sign != NULL) { - new_path = seahorse_op_sign_file (sctx, sign, &err); - + gtk_init (&argc, &argv); |