Displaying 2 results from an estimated 2 matches for "i_was_here".
2006 Jan 08
4
Redirect to where I was
I wonder if there is a standard Rails way to redirect from an action
back to a previously viewed page. As a quick fix I created two little
methods in the controllers/application.rb. Does this seem like an ok
way to go?
Thanks,
Peter
class ApplicationController < ActionController::Base
  def i_was_here
    session[:i_was_here] = request.env[''REQUEST_URI'']
  end
  def redirect_to_where_i_was
    redirect_to session[:i_was_here]
  end
end
1998 Feb 03
0
serious security problem in XKB
...un in setuid or setgid enviroment (e.g. typical
XFree86 installation has XF86_* installed setuid root), local users can
exploit a "feature" of XKB implementation to execute arbitrary commands
with the extra privileges.
Quick vulnerability check:
$ Xserver -xkbdir ''id > /tmp/I_WAS_HERE;''
[exit X server]
$ grep root /tmp/I_WAS_HERE && echo ''Gotcha!''
Quick fix:
1. as usual chmod u-s,g-s all installed Xserver binaries (*)
2. use xdm or a SAFE and PARANOID wrapper to start Xserver
(*) and unsafe or not-paranoid-enough setuid/setgid wrappers...