similar to: Directory Listing outside of app structure

Displaying 20 results from an estimated 10000 matches similar to: "Directory Listing outside of app structure"

2012 Dec 13
1
[PATCH] daemon: fix directory outside current root when executing commands
When executing a command, we temporarily chroot, fork and exec the command, then chroot back. We intentionally don't chdir in the parent process so that we can 'jailbreak' the chroot later. However, this has the effect that commands are executed with a current working directory which is outside the current root. This unusual state can cause errors in executed commands which don't
2010 Jun 26
2
[PATCH] Fix COM32 chdir()
From: Gene Cumm <gene.cumm at gmail.com> Fix COM32 chdir() since it's implemented in the core. Signed-off-by: Gene Cumm <gene.cumm at gmail.com> --- diff --git a/com32/lib/chdir.c b/com32/lib/chdir.c index 6a365f3..4bd4c84 100644 --- a/com32/lib/chdir.c +++ b/com32/lib/chdir.c @@ -8,10 +8,5 @@ int chdir(const char *path) { - /* Actually implement something here... */ - -
2006 May 02
4
ordering after a inject
Hi, My results are getting out of order after I do the following command: count = result.inject({}) { |hsh, row| hsh[row[''name'']] = row[''count''].to_i; hsh } Why? Here are more specifics: My complete method is this (based off of acts_as_taggable code - not'' DHHs, but the original one): def self.sql_to_count_plays(lookback) sql =
2005 Jul 19
1
Minor "bug" in source()
For R v2.1.1 patched and R v2.2.0 devel: Calling source(file, chdir=TRUE) with is.character(file) != TRUE, that is, with 'file' as a connection, will generate an error. Example: > file <- textConnection("cat('Hello world\n')") > source(file, chdir=TRUE) Error in source(file, chdir = TRUE) : Object "ofile" not found Of course, it does not make
2009 Nov 17
1
Codoc mismatches
I have a function: source_dir <- function(path, pattern = "\\.[rR]$", chdir = TRUE) ... documented with ... \usage{source_dir(path, pattern="\\.[rR]$", chdir=TRUE)} ... But I get Codoc mismatches from documentation object 'source_dir': source_dir Code: function(path, pattern = "\\.[rR]$", chdir = TRUE) Docs: function(path, pattern =
2004 Jan 30
1
Able to Mount home, but getting failure errors in logs
Hi, I have a few users that are creating errors like below. These users have mapped a directory via Samba and also have it connected. They can access their home directory or other directory via Samba fine, but it is strange that every hour on the hour there is a failure put into the log (even though they are working). My server is joined to the Domain and it is using
2002 Jun 26
5
[PATCH] improved chroot handling
There are a couple of niggles with the sandboxing of the unprivileged child in the privsep code: the empty directory causes namespace pollution, and it requires care to ensure that it is set up properly and remains set up properly. The patch below (against the portable OpenSSH, although the patch against the OpenBSD version is very similar) replaces the fixed empty directory with one that is
2005 Jun 15
1
source() chdir does not work (PR#7940)
Full_Name: Alex Galakhov Version: 2.1.0 OS: Linux (Debian) Submission from: (NULL) (195.19.131.68) After software upgrade source() does not work properly anymore. It completely ignores the chdir= parameter. This is because is.character(file) is always false after the assignment file<-file(file). The fix is (written by hand in diff-like syntax, hopefully, you'll understand it):
2006 Dec 04
10
Avoiding SQL Injection in :order?
This thread references: http://www.ruby-forum.com/topic/90258#new http://www.ruby-forum.com/topic/82349#143790 ActiveRecord''s find() method has built in ways to avoid SQL injection by using the format > :conditions => [ "user_name = ?", user_name] Is there any such system for escaping injection in :order? It seems to only take a string and feed it to the SQL
2013 Aug 18
3
missing chdir before chroot in guestfsd
daemon.c does just a chroot, without chdir. The result is that pwd does not work correctly (it causes fs/dcache.c:prepend_unreachable() to add the unreachable string). A workaround is to add "cd /" before each sh command. ><fs> mount /dev/sda2 / ><fs> sh "cd / ; chroot / ; /bin/pwd" / ><fs> sh "/bin/pwd" (unreachable)/ ><fs> sh
2007 Sep 05
4
Mocking to spec a sort_by method
Hello, I have a question regarding the use of Mocha with rSpec to spec one of my methods. My spec contains the following vehical1 = mock() vehical2 = mock() vehical1.stubs(:mph).returns(150) vehical2.stubs(:mph).returns(250) comparer.add_vehical([@vehical1, @vehical2]) comparer.sort_by(:mph) The comparer is an object that has a basic "stack like" functionality, add_vehical is the
2003 Jul 11
2
Permission denied
Dovecot is faulting on an error about permissions that it shouldn't do. I've got an user with its home dir with permissions 700, and inside the mail directory with the mboxes. In the error log I can see: 'Can't chdir to /home/user. Permission denied' I wonder why it has to chdir to that directory and why it can't access. Shouldn't it be running as the user?
2006 Jul 20
3
sort_by with via a parent models child
I am having a problem with ruby''s sort_by function. I want to sort a list of parent model objects based on the children of the parent models. Normally you might say sortedList = modelList.sort_by { |model| model[''someAttribute''] } What I am tring to do is sortedList = modelList.sort_by{ |model| model.children.find(:first, order=>"price desc" ).price}
2002 Nov 05
2
[PATCH] Add a chroot_users option to sshd
This patch adds a new option to sshd, chroot_users. It has the effect of chroot()ing incoming ssh users to their home directory. Note: this option does not work if UsePrivilegeSeparation is enabled. Patch is based on OpenSSH 3.4p1. *** servconf.h@@\main\1 Tue Oct 1 17:25:32 2002 --- servconf.h Wed Oct 2 06:17:48 2002 *************** *** 131,136 **** --- 131,137 ---- char
2005 Jul 12
3
bug in chdir option of source
I'm on R 2.1.0. In the "source" function there is a bug preventing the proper use of the chdir option (which simply doesn't work). The problem is that in the function the following line occurs: file <- file(file, "r", encoding = encoding) This overwrites the variable "file" and later causes the check if (chdir && is.character(file)
2009 Aug 31
2
Samba wants "chdir"
Hallo, one of my colleagues has problems with Samba (V 3.0.32). Samba runs on a Linux server (Slackware 2.6.29.6), some clients are attached via a Windows Terminalserver. Wiederum war auf dem Windows-TS 1(!) User in die Arktur3.6 -Dom?ne f?r ca 20 Minuten angemeldet und hat dabei ca 4400 Meldungen in die /var/log/messages geschrieben. Diese beginnen mit: (my bad translation: 1 client was
2008 Dec 23
4
Windows 2003 Cygwin Netapp remote filesystem
Amongst various problems I am having, I am trying to run an rsync daemon on a windows 2003 server with cygwin installed. It works fine, except that I can't seem to get the daemon to chdir to any file that is remotely mounted from my Netapp. Other windows shares or local disks chdir just fine. very weird. I think it has something to do with the automapping of shares in cygwin. Any help
2010 Sep 15
2
CONFIG and appended directory; current directory
I've been testing the CONFIG directive and config.c32 module and I've found a possible issue. It seems to ignore the directory of "/" but can otherwise go up and down a directory tree perfectly. Executing COM32 chdir("/") does seem to work. Also, I noticed that the config file name is relative to the old present working directory (herein pwd) and not the new pwd
2004 Apr 16
2
RSync on Windows 2003
Hello, I'm desperately trying to have a RSync server work on a Windows 2003 Standard Server. All the documentation available I have found applies to Windows NT/2000/XP I don't know whether 2003 works differently from the previous Windows. I have installed the cwrsync package. The RSyncServer Service is running fine under a user account named cwrsync. A successful Telnet on the port 873
2006 Feb 08
7
DRY methodology
because I am a grasshopper... Now that I can sort my ''list''...is there a logical way of not repeating myself to having essentially the same list view with multiple sorts? i.e. def list_cl # ordered by clients last name @placement_pages, @placements = paginate( :placements, :include => [:client], :order_by =>